Hi there guys,
I have a form and I want to add a check box in it, to give the user an option to open a different form.
The user enters the order number in a text box. My code runs after the update event of the text box. I have added this code which is not working.
Private Sub txtOrder_AfterUpdate()
code
code
code
New code
if Me.chkbox Then
DoCmd.OpenForm "MY_New_Form"
exit sub
end if
.
.
End Sub
The new form opens, no matter if the check box is checked or not. I've no idea why its doing that.
Anyone have any ideas.
Thanks for your time and advice in advance.