using sql to set a a reports recordsource (1 Viewer)

gbanks

Registered User.
Local time
Today, 22:47
Joined
Feb 9, 2000
Messages
161
Using this code as part of a module to open a report in print preview and set it's recordsource to the sql I have written earlier in the code. The problem is when I run this it only prints the report it won't show it to me in print preview like I want. Anybody know what's wrong? Thanks...


DoCmd.OpenReport "SitesIssues_qry", acViewNormal, "", "", acNormal
Me.RecordSource = strsql & " " & strWhere & "" & strOrder
 

john471

Registered User.
Local time
Tomorrow, 07:47
Joined
Sep 10, 2004
Messages
392
Use acViewPreview in lieue of acViewNormal.

acViewNormal ==> print.

hth

regards

John.
 

gbanks

Registered User.
Local time
Today, 22:47
Joined
Feb 9, 2000
Messages
161
Thanks

Thanks John That was it..
 

Users who are viewing this thread

Top Bottom