Intrinsic Error problem Access97

T

Tony Nichols

I have a form which contains subforms. The table the main form is based on
requires a value for the primary key but the user can try to reach the
subform before the primary key field is populated.

When this happens I am receiving an error dialog box with the message "Index
or Primary key can't contain null value". This error seems to be
intrinsically produced as I have error trapping written in the before update
event of the main form for the error number 3058. When I check the help
button on the error dialog box I am presented with the error detials for
error 3058.

I tried adding a trap in the enter event for the subform as well as the
error event within the subform, the error is not produced in either event.

Can someone guide me in the direction to look for the error being produced?
I need to write a trap around the error to clear it but cannot as I cannot
find the source event.

Thanks in advance for any assistance. Again this is in an Access97 database
file.

Tony
 

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