The goal of this doc is to use a button that adds a row in the table RunNameGen which, as the name implies, creates a standard new name (RunGen), based on the current date. At the same time, the button adds a row to a production history table (Runs), in which the production ID (Run ID) is taken from the RunNameGen table.
Notice that button 1 fails to select the last item from the list of RunGen. Instead, it appears to replace the last item of the list by a term “1masc”. This can be confirmed by using button 2, which puts the whole list of RunGen as the RunID.
I appreciate if anyone could tell me what is wrong with the code?