Hi
I've looked thoughout this forum, but I'm having a hard time understanding how to write a query in VBA to populate a text box.
The reason is I need to have a value from a table to be entered into a text box to facilitate data entry. I have sync'd combo boxes on the form as criteria.
I just don't know how to look up a value in a table with the two combo boxes as criteria and then enter the result in the text box.
(I did use a list box with the rowsource set up with the query, but it does not select the value so that it gets transmitted to another table.
Thanks in advance!
I've looked thoughout this forum, but I'm having a hard time understanding how to write a query in VBA to populate a text box.
The reason is I need to have a value from a table to be entered into a text box to facilitate data entry. I have sync'd combo boxes on the form as criteria.
I just don't know how to look up a value in a table with the two combo boxes as criteria and then enter the result in the text box.
(I did use a list box with the rowsource set up with the query, but it does not select the value so that it gets transmitted to another table.
Thanks in advance!