Selasa, 12 Juli 2016

Re: [MS_AccessPros] Relationship Definition

 

Sarah-


What is the data type of Product Class?  As long as the field in the Product table contains a true Null value, you should be able to define the rule.  I suspect you have some non-Null or other invalid values.

John Viescas, Author
Effective SQL
SQL Queries for Mere Mortals 
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications 
(Paris, France)




On Jul 12, 2016, at 7:46 PM, sarahk@schemesoftware.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:



I have 2 tables:

Product Class

Product


The Product table has a field Product Class that relates to the Product Class table. This field in the Product table is optional.

 I am trying to define a Relationship with 'referential integrity' between the Product Class and the Product table, but because I have records in the Product table that dont have the Class filled in, I am getting a message 'Product violates referential integrity'. Is there any way around this?. I have tried all Join Types but I am getting the same message on all of them. 


Thanks for your answers.


Sarah




__._,_.___

Posted by: John Viescas <johnv@msn.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (2)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


.

__,_._,___

Tidak ada komentar:

Poskan Komentar