Passing parameters in VBA for Access
- by Newbie
In Access 2007 I have created a form with a textbox and a button. At the moment, when I press the button, I load a query with the textbox data passed as a parameter to the query criteria.
I would like to change this so that all (manually input) options appear in a combobox (in place of the textbox). I would then like to pass the combobox text to a VBA module upon pressing the button. How do I do this?
Similarly, I hope to output a different string from this module, and I hope to use this as the query criteria. How do I do this?