I have a form that has MenuScripts (top-levels and second-levels).
The problem that I am having is one of the second-levels is “Add” which brings you to another form. This form has a button ‘Record’ and textboxes. This form allows the user to input data and when the record button is clicked, the inputted data is written to a text file.
Back to the first form. Another second-level MenuScript is “Update” which brings the user to the same form as “Add”; but first, the user has to click an item within a listbox to proceed.
How do I get the data from the selected item to appear in the appropriate textboxes and how do I get the ‘Record’ button to update data instead of thinking it is only an add-data button?
Also, if someone can give me some pointers on making sure the user selects an item within the listbox would definitely be a plus!
Unfortunately, I cannot add images since my reputation is too low.
To access the control in another form, you could prefix the formname to the control name(name of the control in the other form).
Example:
To check whether an item is selected, you could do this way:
Or, this way: