Filter and Print Report

fenhow

Registered User.
Local time
Today, 08:59
Joined
Jul 21, 2004
Messages
599
Hi, I am using this to filter a report and print preview. The question I have is how can I print all the records if the value in txtStatus is null?
Many thanks.
Fen

DoCmd.OpenReport "CAM AVAILABLE INVENTORY REPORT", acPreview, , "Status= '" & Me.txtStatus & "'"
 
Test it with an If block and open it without the wherecondition if it's null.
 

Users who are viewing this thread

Back
Top Bottom