I have created a query and would like to use a list box to have the user select data for parameter query. Is this possible? If so, how would you do it?
Juan C Rivera
@Reply 4 years ago
When you get into the developer classes you get many examples on list boxes Developer 5 but a free tech help List Box Filter may be a quick answer to what you need.
Kevin Yip
@Reply 4 years ago
Hi Anjanette, you need VBA to pass the list box value to a query's parameter. The picture below shows how to do it, using the "Parameter" property of a query. I don't know if Richard has a course for this or not. The key thing is that a parameter needs square brackets in query design (e.g. [My Parameter]), but it doesn't need square brackets when it is used in VBA, as shown below.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
TechHelp.