3 hours ago: Our file storage provider is running maintenance today. If any videos don't load, wait a minute, refresh the page, and try again. Sorry for any inconvenience.  Dismiss
 
Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Courses > Access > Expert > X02 > < X01 | X03 >
Back to Access Expert 2    Comments List
Relationship Error Upload Images   Link   Email  
Robert Stott      
8 months ago
Miscrosoft Access can't create this relationshop and enforce referential integriry. Data in my tblMainBook violates refferentail integrity rules.

I have the MainBook table and 12 related tables (ie Status,Year, 3 Type fiield, library, media type, book Series, Reader, and Class) all of which are foreign keys in the table .
The table has 5 other fields(notes, Time and 3 checkbooks). I've been able to set Ref Int on 4 of relationships but can't on the other 8; 4 are required fields for each audiobook, and 4 are optional.

The tells me to fix the problem in the MainBook table - can't find one since the are foreign keys. Help!
Scott Axton            
8 months ago
Double check that your data types match.  An Id of AutoNumber in one table can't match to a foreign key of another table that is Short Text.
Robert Stott      
8 months ago
I figured it out - I had some Foreign Key in the main book table data that didn't match Primary Key in each of the table. I did an unmatched Query to identify errors and to fix them. I database now has referential integrity for all tables.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Expert 2.
 

 
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 7/14/2024 9:39:23 AM. PLT: 1s