G
Guest
I have an "after update" event that checks the option chosen in a pop-up form
with the information in a field on the main form. If the department is wrong
it brings up a message. If it is correct it would then set focus on the next
textbox.
My problem is that the first line doesn't work even if the two fields match.
What is wrong?
If Me.dept <> Forms.employee.dept Then
MsgBox "You have selected the wrong department", vbOKOnly, "Invalid Entry!"
Else
Me.password.SetFocus
End If
with the information in a field on the main form. If the department is wrong
it brings up a message. If it is correct it would then set focus on the next
textbox.
My problem is that the first line doesn't work even if the two fields match.
What is wrong?
If Me.dept <> Forms.employee.dept Then
MsgBox "You have selected the wrong department", vbOKOnly, "Invalid Entry!"
Else
Me.password.SetFocus
End If