By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,222 Members | 1,123 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,222 IT Pros & Developers. It's quick & easy.

Unable to track error 3058 (LinkChildFields in subform)

P: n/a
I have a form with a tab control. Many recordset that I turn on/off with
the tab change property. I set the LinkChildFields and LinkMasterFields at
this time.

However, if there is no record in the subform, I will get an error; "Index
or primary key can't contain a Null value". By playing with the sub form
err, I have determined that it is 3058. But I can not trap it, in both the
main form or the subform. I have tried open, load, beforeinsert event of
the subform with no success.

How should I handle this?
Nov 12 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
The only turnaround I have found so far is to remove the subform table
index. I have tried conditions and the use of the Form_Error event. No
change. Any second thought?
"Saintor" <sa******@REMOVETHIShotmail.com> wrote in message
news:QW********************@weber.videotron.net...
I have a form with a tab control. Many recordset that I turn on/off with
the tab change property. I set the LinkChildFields and LinkMasterFields at this time.

However, if there is no record in the subform, I will get an error; "Index
or primary key can't contain a Null value". By playing with the sub form
err, I have determined that it is 3058. But I can not trap it, in both the main form or the subform. I have tried open, load, beforeinsert event of
the subform with no success.

How should I handle this?

Nov 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.