Hi,
I am developing an access solution, not having used VBA for 7 years. Thrown in at the deep end some might say.
My problem is thus;
I am going to need to generate reports, based upon user input (OrderID). However, this order ID is not provided by a user, in the form of a text box but is selected from a multicolumn listbox. I know how to generate a query based upon the contents of a form field, textbox etc but is it possible to reference a variable stored within an open form from a query.
Code which sets the variable is here;
http://rafb.net/paste/results/fksKn365.html
OrderID is simply a global variable, used in other parts of the system.
I am developing an access solution, not having used VBA for 7 years. Thrown in at the deep end some might say.
My problem is thus;
I am going to need to generate reports, based upon user input (OrderID). However, this order ID is not provided by a user, in the form of a text box but is selected from a multicolumn listbox. I know how to generate a query based upon the contents of a form field, textbox etc but is it possible to reference a variable stored within an open form from a query.
Code which sets the variable is here;
http://rafb.net/paste/results/fksKn365.html
OrderID is simply a global variable, used in other parts of the system.