T
Tony Williams
I have a date parameter form that has a command button that opens a report.
I have this code on the Onclick button
If [txtto] < [txtfrom] Then
MsgBox "The 'Start Date' is after the 'From date'", vbOKOnly
Cancel = True
End If
If the user clicks on OK I want them to go back to the form. At the moment
the report opens.
What have I done wrong?
Thanks
Tony
I have this code on the Onclick button
If [txtto] < [txtfrom] Then
MsgBox "The 'Start Date' is after the 'From date'", vbOKOnly
Cancel = True
End If
If the user clicks on OK I want them to go back to the form. At the moment
the report opens.
What have I done wrong?
Thanks
Tony