Form data to query

W

WWV

This may be easy but it's late and I can't figure it out. I have a tbl with
a lot of Yes/No fields. I would like to show the user a form and have them
select the Y/N fields to includ in a query rhat will generate a report
(labels). How can I pass the Y/N fields checked to a query?
Thanks
WWV
 
J

Jamie Richards

Provided your form will be loaded when you open the query or report, insert,
into the query WHERE clause, a reference to the form control containing the
value you want as a criterion:

fldYourField = Forms("frmYourForm").ctlYourControl


Jamie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top