issues editing records in form

tcarter963

New Member
Joined
Aug 3, 2006
Messages
38
I have a form with a subform. In the form I hid a text box for ID, which is an autonumber primary key. The subform has a box for ID, which the default value is the ID from the main form. This is a one to many relationship with the main form being the one and subform the many.

My form also has a date field. I would like to be able to pull up records based on the date and be able to edit/see those records. I can't even go through the records using the navigation buttons at the bottom of the form. When I put a date in that has previous record information in it, I get a referential integrity type error. What am I doing wrong here?
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Make sure that the parent form does not have the table that the subform uses for its record source in it and the subform doesn't have in its record source the table that the main form uses for its record source.
 
Upvote 0
One more thing to check is that you haven't checked the Enable Referential Integrity between a table in your form or subform and just a lookup table.
 
Upvote 0
I checked under "Edit Relationships" and Enforce Referential Integrity was not checked....

I was just screwing around and right clicked on the form in Form View and clicked on Filter by Form, now I can click through records and change entries without any issue. I don't quite understand why or how clicking on filter fixed the problem, but I am new to this. Everything seems to be fine now. I closed the form and reopened it and the first time it reopened I had to click on filter again, the next time I opened the form, it opened the way that I wanted to, with the ability to scroll through and edit records. Was this just a bug in MS access?

Bob, thanks for your help. Do you have any good references for explaining what I did to fix this, if any?
 
Upvote 0

Forum statistics

Threads
1,224,551
Messages
6,179,480
Members
452,915
Latest member
hannnahheileen

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top