Hi, I'm new to VBA. I have 2 text boxes in a form, I'd like to get the user inputs from those 2 text boxes and then use it in a query, then use a command button to run the query. How can I do that?
In my query SQL view, I used forms!txtbox1 and forms!txtbox2 to get the values, but it didn't seem to work.
Do I have to use VBA to do it? How can I run a sql query in VBA?
Any help would be appreciated.
In my query SQL view, I used forms!txtbox1 and forms!txtbox2 to get the values, but it didn't seem to work.
Do I have to use VBA to do it? How can I run a sql query in VBA?
Any help would be appreciated.