A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

append same field data to seperate tables in same database



 
 
Thread Tools Display Modes
  #1  
Old March 8th, 2009, 06:48 PM posted to microsoft.public.access.tablesdbdesign
Rick Wilkerson
external usenet poster
 
Posts: 1
Default append same field data to seperate tables in same database

I need all newly added field units to go to two tables in same database.d
  #2  
Old March 9th, 2009, 01:31 AM posted to microsoft.public.access.tablesdbdesign
Allen Browne
external usenet poster
 
Posts: 11,706
Default append same field data to seperate tables in same database

Use the AfterInsert event procedure of the form where entries are made into
one table to Execute an append query statement so a record is also added to
the related table. (You will need some understanding of VBA and SQL to
achieve this.)

Whether this is the best solution depends why you need to do this. If you
have split the fields across 2 tables because you could not fit them all
into one table, the table design is wrong. You need to create related tables
with many records, instead of one wide table with many fields. (That may not
be what you are doing, but it is a very common mistake.)

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Rick Wilkerson" Rick wrote in message
news
I need all newly added field units to go to two tables in same database.d


 




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


All times are GMT +1. The time now is 03:59 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.