View Single Post
  #2  
Old November 3rd, 2009, 08:01 PM posted to microsoft.public.access.forms
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default Use listbox selection for query criteria

In your query, refer to the listbox using the syntax
Forms![NameOfForm]![NameOfListbox] (where you replace NameOfForm and
NameOfListbox with your actual names)

Note that this will only work if the form is already open when the query
runs (Access will not open the form for you), and the list box cannot have
multiselect enabled.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"stale_dry_one" wrote in message
...

I have a listbox that shows a list of regions, I am trying to create
a query that will use the listbox selection to only show records that
are in that region. I want to use this query as part of a second
query. Can anybody help with this?

Thanks,
steve