Hi Sarah,
I am assuming that the DEFAULT VALUE of the field that is the foreign key is set to 0 in the table design ... not anything you did -- Access does this for numbers.
Delete that (so NO default value for the foreign key field). Look at the data in your table and delete the 0's that are already there
respectfully,
crystal
~ have an awesome day ~
On 7/12/2016 2:37 PM, sarahk@schemesoftware.com [MS_Access_Professionals] wrote:
Thanks John,I changed the zero length property and ran the query and now I can enforce the integrity.
I dont understand the zero length property:if the field is not filled in , then what is stored in the table if allow zero length is yes? If allow zero length is no?.
Sarah
---In MS_Access_Professionals@yahoogroups.com, <JohnV@...> wrote :
Sarah-
Make sure the Allow Zero Length property of the field is set to NO. That alone may fix the problem. Or you might need to run a query:
UPDATE ProductsSET [Product Class] = NullWHERE Len([Product Class]) = 0;
John Viescas, AuthorEffective SQLSQL Queries for Mere MortalsMicrosoft Access 2010 Inside OutMicrosoft Access 2007 Inside OutMicrosoft Access 2003 Inside OutBuilding Microsoft Access Applications(Paris, France)
On Jul 12, 2016, at 9:07 PM, sarahk@... [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:
The data type of the Product Class is text. How to I check if it is a true Null value?. How do I set it to Null if it's not filled in on the data entry form?.Sarah
---In MS_Access_Professionals@yahoogroups.com, <JohnV@...> wrote :
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, AuthorEffective SQLSQL Queries for Mere MortalsMicrosoft Access 2010 Inside OutMicrosoft Access 2007 Inside OutMicrosoft Access 2003 Inside OutBuilding Microsoft Access Applications(Paris, France)
On Jul 12, 2016, at 7:46 PM, sarahk@... [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:
__._,_.___
Posted by: crystal 8 <strive4peace2008@yahoo.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (8) |
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:
Posting Komentar