D
DS
This IIf statement is not working...it doesn't do anything.
I tried changing the first part of if to
If Me.TxtDisplay <> Me.TxtDupeID Then
then I did get the "DUPLICATE ID"
but the second part still wouldn't work.
Any help appreciated.
Thanks
DS
Select Case
Case 14
Me.TxtDupeID = Nz(DLookup("[EmployeeID]", "Employees", "EmployeeID = " &
Me.TxtDisplay & ""), 0)
If Me.TxtDisplay = Me.TxtDupeID Then
DoCmd.OpenForm "FXMsgWarning"
Forms!FXMsgWarning!TxtMsg = "DUPLICATE ID"
ElseIf Me.TxtDupeID = 0 Then
DoCmd.Close acForm, "PadNumber"
End If
End Select
I tried changing the first part of if to
If Me.TxtDisplay <> Me.TxtDupeID Then
then I did get the "DUPLICATE ID"
but the second part still wouldn't work.
Any help appreciated.
Thanks
DS
Select Case
Case 14
Me.TxtDupeID = Nz(DLookup("[EmployeeID]", "Employees", "EmployeeID = " &
Me.TxtDisplay & ""), 0)
If Me.TxtDisplay = Me.TxtDupeID Then
DoCmd.OpenForm "FXMsgWarning"
Forms!FXMsgWarning!TxtMsg = "DUPLICATE ID"
ElseIf Me.TxtDupeID = 0 Then
DoCmd.Close acForm, "PadNumber"
End If
End Select