Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple Checkbox Query has me stuck?

Status
Not open for further replies.

mikelev

Technical User
Mar 23, 2004
223
US
Access 2000

I have a form CLIENT with a field named 'DENY' which is a checkbox on a table named CLIENT. I am writting an Access report to show all clients that have a check in the DENY field.

Should I use a query, or can that parameter be set in the ControlSource section?

Any help would be appreciated.


 
You don't need to create a query if you only want to limit the records on your table by one field on a single table.

You could add a button to your form, and use the Where parameter of the DoCmd.OpenReport method:

DoCmd.OpenReport "YourReport",acViewPreview,,"DENY = true"

-Gary
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top