Arg!

UTK

Engineer Bound
Local time
Yesterday, 17:56
Joined
Oct 13, 2004
Messages
17
In my DB i have a Check Box along with several other fields. I made a query to only give me records when that check box is checked. I also made a report to print all of my records. I want to be able to first see if there are any records with the check box checked. If it is, i want to print a report that contains only those records and display a msgbox. If it is not, i want to print all reports and output them to Excel. I have absolutely no clue how to do this. I tried using "If RecordCount > 0_Then...", but really don't know how RecordCount works or how to put that into code correctly. Please Help!
 
See if you could use a dcount() function within an if statement...

kh
 
in the query criteria put =null
 

Users who are viewing this thread

Back
Top Bottom