Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple Tabs - Same Table as Record Source- Problem Saving

Status
Not open for further replies.

dmon000

Technical User
Sep 9, 2003
79
US
HI,

I have an existing form with 5 tabs with 5 subforms. The form is related to the subforms in each case by a field called Prod_Id_No.
This field is a key field in all the tables behind these forms and subforms. Tab 2 and 3 use the same table, NP_Part, as the record source. When I move off tab 3 in this existing form there is no problem.

However, I made a copy of the form and the subforms in order to add fields and controls. In this copy, when I move off tab 3, Access generate an error message about creating duplicate records in a key field. Now this must be because when I am moving off tab 3, Access is attempting to write the same value to the Prod_Id_Field.

I just cant see why the existing form does not have that problem. I looked at all the code behind both the new and the existing forms and can't figure out what the BLEEP is happening or not happening in my copy.

Any Ideas???

Thanks !!!
 
For the copy you made, did you make the "Data Entry" property to be "True"?

Seaport
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top