could someone help me with this statement, I am new to this and learning. I keep getting a " function call on left hand side of statement must return avariant or an object" Thanks ahead of time. Again!!!
Private Sub Form_BeforeUpdate(Cancel As Integer)
If Not IsNull(CALLNUM.Value) And IsNull(KEY.Value) Then
DoCmd.CancelEvent
MsgBox("You Must Assign A Client To This Ticket!", vbCritical, "CLIENT NAME", , , vbOKOnly) = vbOK
Private Sub Form_BeforeUpdate(Cancel As Integer)
If Not IsNull(CALLNUM.Value) And IsNull(KEY.Value) Then
DoCmd.CancelEvent
MsgBox("You Must Assign A Client To This Ticket!", vbCritical, "CLIENT NAME", , , vbOKOnly) = vbOK