I have a form. Specific records are accessed by selecting from a combobox. The combobox has two columns API and WellName, API is the bound column, the row source is a query.
I would like to write some code that would allow the user to take a list of API numbers from a temptable and loop through this list matching each item in the table to the item in the form's combo box. Once matched then automatically actuate a series of command buttons on the form that prints a report, exports to a file.
I'm thinking along the lines of this but am not sure of all code.
For each item in temptable.API
Find item in combobox
if match then
activate cmdbutton 1
activate cmdbutton 2
end if
next item in temptable.API
How do I reference the appropriate column in the combo box and programtically "click" the command buttons?
I would like to write some code that would allow the user to take a list of API numbers from a temptable and loop through this list matching each item in the table to the item in the form's combo box. Once matched then automatically actuate a series of command buttons on the form that prints a report, exports to a file.
I'm thinking along the lines of this but am not sure of all code.
For each item in temptable.API
Find item in combobox
if match then
activate cmdbutton 1
activate cmdbutton 2
end if
next item in temptable.API
How do I reference the appropriate column in the combo box and programtically "click" the command buttons?