I am trying to prevent duplicate job orders from being entered for the same employer. The employer is in the main form and the job order is in the subform. I have this code attached to the "beforeupdate" event of the control on the subform but I get a compile error: wrong number or arguments or invalid property assignment.
Can you see what is wrong?
If Not IsNull("[PositionType]", "JobOrderInfo", "[EmployerID] = " & Me.EmployerID & " AND [PositionType] = """ & Me.PositionType & """") Then
MsgBox "Already There"
Cancel = True
Me.Undo
End If
Software/Hardware used:
ASKED:
August 28, 2008 7:55 PM
UPDATED:
August 30, 2008 9:05 AM