C
Chris
I pasted this:
Private Sub Symbol_ID_BeforeUpdate(Cancel As Integer)
If DCount("*", "Borrowing", _
"[Symbol ID]='" & Nz(Me![Symbol ID].Value, "") & "'") > 0 Then
MsgBox "The value already exists!"
Cancel = True
End If
End Sub
Got this message:
---------------------------
Microsoft Office Access
---------------------------
The value already exists!
---------------------------
OK
---------------------------
And have to close out saying "Microsoft access may have encountered an
error while trying to save a record. If you close this object now the
changes you made will be lost. So you want to close the database
object anyways?"
Chris
Private Sub Symbol_ID_BeforeUpdate(Cancel As Integer)
If DCount("*", "Borrowing", _
"[Symbol ID]='" & Nz(Me![Symbol ID].Value, "") & "'") > 0 Then
MsgBox "The value already exists!"
Cancel = True
End If
End Sub
Got this message:
---------------------------
Microsoft Office Access
---------------------------
The value already exists!
---------------------------
OK
---------------------------
And have to close out saying "Microsoft access may have encountered an
error while trying to save a record. If you close this object now the
changes you made will be lost. So you want to close the database
object anyways?"
Chris