Connecting Tech Pros Worldwide Help | Site Map

New Records to Several Forms

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 13th, 2005, 01:55 AM
Coy Howe
Guest
 
Posts: n/a
Default New Records to Several Forms

What is the best way to enter a new record and have a common ID # or
Social Security #, for example, populate several tables at the same
time? I have a main table with an auto number and a dozen attached
tables with numbers. They all have a 1 to 1 relationship that cascades
info from the main table. I have tried several ideas (update queries,
etc.), but always seem to run into a "key violation," or similar
problem.

Thank you,

Coy


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

  #2  
Old November 13th, 2005, 01:55 AM
Steve
Guest
 
Posts: n/a
Default Re: New Records to Several Forms

Your tables need to look like this:

TblMainTable
MainTableID
<<Fields>>

TblAttachedTable1
AttachedTable1ID
MainTableID
<<Fields>>

TblAttachedTable2
AttachedTable1ID
MainTableID
<<Fields>>

repeat for other attached tables.

To enter data you need a main form and one or more subforms. The main form
is based on TblMainTable and each subform is based on one of the attached
tables. You set the LinkMaster and Linkchild properties of each subform to
MainTableID and as you enter data in the subform, Access will automatically
fill in MainTableID in the subform with the same value as MainTableID in the
main form.
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
resource@pcdatasheet.com
www.pcdatasheet.com


"Coy Howe" <cfs@olypen.com> wrote in message
news:4127cdb9$0$14480$c397aba@news.newsgroups.ws.. .[color=blue]
> What is the best way to enter a new record and have a common ID # or
> Social Security #, for example, populate several tables at the same
> time? I have a main table with an auto number and a dozen attached
> tables with numbers. They all have a 1 to 1 relationship that cascades
> info from the main table. I have tried several ideas (update queries,
> etc.), but always seem to run into a "key violation," or similar
> problem.
>
> Thank you,
>
> Coy
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it![/color]


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.