dbTalk Databases Forums  

foreign key left blank

comp.databases.ms-access comp.databases.ms-access


Discuss foreign key left blank in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Josh Sharpe
 
Posts: n/a

Default foreign key left blank - 07-28-2003 , 09:37 AM






Two Tables:

People: Address:

PeopleID(autonumber) --AddressID (Autonumber)
Name(text) / City (text)
AddressID (long Integer)--- State (text)

So I created a form with the form wizard to include the Name, City, and
State Data fields.
It creates a main form called Address and a subform called People.

Then I checked the Link Child/Master fields to be sure they're set to
AddressID
(and they are - set by default when the relationship is made)

Problem is that when i use the Address(main form) to enter A record the
foreign key in the People table is left blank.
Why?!?!?! What am I doing wrong - This is driving me crazy!

Please Help!!
-Josh



Reply With Quote
  #2  
Old   
Pieter Linden
 
Posts: n/a

Default Re: foreign key left blank - 07-28-2003 , 09:54 PM






I don't get it. your form looks like this:

AddressID: [Autonumber]
Address: [ ]
City: [ ] State: [ ] ZipCode: [ ]

Folks living at this address:
----------------------------
Quote:
People subform
AddressID Firstname, LastName...

And you have a join by AddressID, which is an autonumber in the
Address table and a LONG INTEGER (Duplicates OK) in the subform, and
it doesn't work? (So the child is definitely People?)


Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.