Index or primary key cannot contain null values

  • Thread starter Thread starter Dan
  • Start date Start date
D

Dan

When the primary key is null and a record is being
inserted I get this error: "Index or primary key cannot
contain null values"

I just want to change what the message says but I can't
seem to get any message boxes to pop up when it occures.

This is my code:
If Err.Number = 3058 Then
MsgBox "..."
End If

when should I run my code and should that work
 
Back
Top