A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Referential integrity and updating primary key



 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old March 17th, 2010, 08:23 PM posted to microsoft.public.access.tablesdbdesign
dynamic dd[_2_]
external usenet poster
 
Posts: 3
Default Referential integrity and updating primary key

I have Access 2000 on the job.
I have two tables [Inmate Demographics] (CDCR#, Last Name, First Name, and
DOB are the only fields) and [7362 Tracking] with many medical related
fields.

[Inmate Demo] Primary Key = ‘CDCR#’
[7362 Tracking]. No Primary Key

One [Inmate Demo] to many [7362 Tracking] relationship on ‘CDCR#’
Referential Integrity is checked with cascading updates

I have a form
Inmate Demographics is the main form with Record Source [Inmate Demographics]
7362 Tracking1 is the sub form with Record Source [7362 Tracking]

I set this up this way because the user wanted to be able to input the CDCR
number and have the rest of the inmate demographics pulled up (names and
DOB). This feature works as planned however, now I can’t add new records on
the Inmate Demo form. Here is the error message I am getting: “The
Microsoft Jet database engine cannot find a record in the table ‘Inmate
Demographics’ with key matching fields(s) ‘CDCR#’. I understand the reason
is that I have not previously entered the data in the table.
How can I get the update done on the Inmate Demographics form? I really am
frustrated and in need of help.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:24 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.