Report Printing Question

K

KCi

Hi All~
I am trying to print 2 different letters based on a field in a table. What
would the code be to say:
If "Filed_1" = True
Print Letter_A
Else
Print Letter_B
End If

Thanks to all who reply!!
 
R

Rick B

If Field1 = true Then
DoCmd.OpenReport "SomeReportName", acViewNormal
Else
DoCmd.OpenReport "SomeOtherReportName", acViewNormal
End If
 
Top