M
mattc66 via AccessMonster.com
In the before Update Event I have the following Code.
If Not IsNull(Me.TagNum) Then
If DCount("TagNum", "tblPhysicalData", Me.TagNum) >= 1 Then
MsgBox "The Tag Number already exists.", vbOKOnly + vbInformation
End If
End If
Once the user enters a TAG Number before it records that number to the table
it checks the table to make sure it's not already input. I am having trouble
with the code. It tells me the TabNum already exists every time, when I know
it's not yet be entered.
Can someone see the error's in my code?
Matt
If Not IsNull(Me.TagNum) Then
If DCount("TagNum", "tblPhysicalData", Me.TagNum) >= 1 Then
MsgBox "The Tag Number already exists.", vbOKOnly + vbInformation
End If
End If
Once the user enters a TAG Number before it records that number to the table
it checks the table to make sure it's not already input. I am having trouble
with the code. It tells me the TabNum already exists every time, when I know
it's not yet be entered.
Can someone see the error's in my code?
Matt