DoCmd.PrintPreview.......

gpurger

Registered User.
Local time
Today, 05:08
Joined
Apr 21, 2004
Messages
66
Please help :o
I have the following statement in a 'Select Case' and I get a blank result.
DoCmd.OpenReport "RptAll", acViewPreview, , "Sub System" = Forms![FrmPrintReports]![LstSelectSub]

Where am I going wrong

Cheers

Gordon
 
Try

DoCmd.OpenReport "RptAll", acViewPreview, , "Sub System =" & Forms![FrmPrintReports]![LstSelectSub]
 
richary,
I think I may have mislead.
"Sub System" is the field I want to filter on the report "RptAll"
and Forms![FrmPrintReports]![LstSelectSub] is the criteria.

Cheers

Gordon
 
Cheers for that, already incorporated.

Gordon :D
 

Users who are viewing this thread

Back
Top Bottom