Help! Print Reports

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

Guest

Hello
I have 2 reports. I create a form that have two check boxes for those two reports. I want to make a command bottun that allow me to mark on check boxes and then print one of these reports. I need help with code. I do not know how to do. Any suggestion that would help me a lot
Thank you
Le Tra
 
In the OnClick property for the button, put code like...



Private Sub Command0_Click()

If [Checkbox1] Then
DoCmd.OpenReport "Some Report Name", acPreview
If [Checkbox2] Then
DoCmd.OpenReport "Some Other Report Name", acPreview
End If

End Sub



Hope that helps,
Rick B


Hello,
I have 2 reports. I create a form that have two check boxes for those two
reports. I want to make a command bottun that allow me to mark on check
boxes and then print one of these reports. I need help with code. I do not
know how to do. Any suggestion that would help me a lot.
Thank you,
Le Tran
 
Hello Rick

I do not know how to verify the checkboxes. Could you please tell me step by step to do it
I think it is essay but I could not make it works. I thank you very much for you help
Le Tra
 
Back
Top