Index or primary key cannot contain null values

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top