dbTalk Databases Forums  

relating tables question

comp.database.ms-access comp.database.ms-access


Discuss relating tables question in the comp.database.ms-access forum.



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

Default relating tables question - 10-27-2005 , 07:49 PM






have 2 tables a and b.
table a has two fields name and date/ name is key
table b has two fields name and address/ name is key
the two tables are related namy to one.

what I want to do is enter name in A and have the same entry entered
automatically in B.

Any suggestions to this obvious question would be appreciated.

Reply With Quote
  #2  
Old   
Ira Solomon
 
Posts: n/a

Default Re: relating tables question - 10-28-2005 , 09:38 PM






Hi:
If you use a form to enter into table a, you could use the after
insert event to put the entry into table b. In that event you could
use code to enter into table b. If you are not a coder you could
write an append query and use "docmd.openquery" in the event to insert
the record into table b.
In the latter case you would use fields from the form as the source in
the append query.

If this doesn't make any sense send me an email and I'll send you a
sample.

Good luck
Ira Solomon

On Thu, 27 Oct 2005 17:49:26 -0700, Judy <> wrote:

Quote:
have 2 tables a and b.
table a has two fields name and date/ name is key
table b has two fields name and address/ name is key
the two tables are related namy to one.

what I want to do is enter name in A and have the same entry entered
automatically in B.

Any suggestions to this obvious question would be appreciated.

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.