Using a macro to print 2 reports

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a table that prints a report when data is present. I want to be able
to check the table if not data print another report. Can you or how do you
setup a macro to do this. Thanks
 
Kdzobel,

See my reply in another newsgroup.

Just a hint for the future... If you feel it is important for your post
to appear in more than one newsgroup (in practice, this is seldom
necessary), it is preferable to cross-post (i.e. address the same
message simultaneously to both groups), rather than multi-post (i.e.
send a separate copy of the message to each group). Thanks.
 
If Me.yourfield = "Temp" Then
DoCmd.OpenReport "ReportNameTemp", acViewPreview
Else
DoCmd.OpenReport "ReportNameOne", acViewPreview
End If
 
Back
Top