Rik_StHelens
Registered User.
- Local time
- Today, 20:54
- Joined
- Sep 15, 2009
- Messages
- 164
Hi
i am new to using VBA, so please excuse my ignorance.
I am trying to use the following code to select a full or summary report:
Private Sub Command25_Click()
If Me.Check20 = False Then DoCmd.OpenReport (rptRemainingRubber)
Else: If Me.Check20 = True Then DoCmd.OpenReport (rptRemainingRubberSummary)
End Sub
It says there is an error with the "Else without IF" line.
Any help is appreciated.
Thanks!
i am new to using VBA, so please excuse my ignorance.
I am trying to use the following code to select a full or summary report:
Private Sub Command25_Click()
If Me.Check20 = False Then DoCmd.OpenReport (rptRemainingRubber)
Else: If Me.Check20 = True Then DoCmd.OpenReport (rptRemainingRubberSummary)
End Sub
It says there is an error with the "Else without IF" line.
Any help is appreciated.
Thanks!