access-database-training - integrity constraint violated
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access Training and help » access-database-training - Integrity constraint violated - parent key not found

access-database-training - Integrity constraint violated - parent key not found

resolvedResolved · Low Priority · Version Standard

replyReply Wed 8 Aug 2007, 12:37Delegate Frances said...

Frances has attended:
Access Introduction course
Access Intermediate course

Integrity constraint violated - parent key not found

Hi, can you help.

I'm creating a vast relational database and have spent ages creating forms. I have command buttons that jump to related forms and series numbers are being picked up across the different forms but when I try to add records to the related forms I get the following message 'ODBC call failed - [oracle][ODBC][Ora]ORA-02291 : integrity constraint (BODCADMIN.EDI_SER_OBSPRG_EDI_OPT_FK1) violated - parent key not found (#2291).....

I have recently deleted one version of a form in favour of another - could this have something to do with it?

Any hints and tips appreciated....

Regards
frances

For upcoming training course dates see: Pricing & availability

replyReply Wed 8 Aug 2007, 15:05Trainer David said...

RE: integrity constraint violated - parent key not found

Try this...

Go to control panel, Administrative Tools, then Data Sources (ODBC).
You should see a list of datasources, then click on Add
Sort through the list to find Microsoft Access driver(*.mdb), then click finish.
Type in "Microsoft Access Driver" in the Data source name, then click ok.
Click ok again to close.

Now, go back to your file, and try running it again - hopefully this helps to fix this issue.

replyReply Thu 9 Aug 2007, 10:10Delegate Frances said...

RE: integrity constraint violated - parent key not found

I tried your solution out and found that this information was already set up.

After going back through my forms I found that the problem was due to Data-record source (at the form level)... some forms were set to obtain data from the 'deleted' parent form. I changed this and it seems to work ok.

Thanks anyway for your speedy reply

 

Access tip:

Create own ribbon tab - Access 2010

a. In Access click on the File tab
b. Select Options from left hand side
c. Choose the Customize Ribbon section
d. Click the New Tab button (below the list of tabs on the right hand side of the dialog box)
e. Select the New Tab (Custom) and enter a name, by clicking the Rename button (below the list of tabs on the right hand side of the dialog box)
f. Select the New Group (Custom) and enter a name, by clicking the Rename button (below the list of tabs on the right hand side of the dialog box)
g. Add commands to your tab and group by locating them on the list on the right hand side (remembering that you can change the list using the drop down box at the top of the list of commands) and clicking the Add button between the two panes to add them to your tab and group
h. You can rearrange the commands in your group, the groups on any tab or the tabs, using the up and down arrow buttons beside the list of tabs.
i. Click OK to apply your changes

View all Access hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard