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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Transfer Query Info. To Table



 
 
Thread Tools Display Modes
  #1  
Old June 18th, 2004, 09:04 PM
Delano
external usenet poster
 
Posts: n/a
Default Transfer Query Info. To Table

I am using MS Access 2000. I created a union query from two tables. I am using the union query to bring up individual records in a form based on a certain criteria (Ex: [By Serial #]). I need to put three additional fields on the form so that the user can add information to the record from the query then save the record to an existing third table. The existing third table will have all the fields from the union query including the three additional fields on the form. I have two questions:

What is the best way to handle these three additional fields (properties, table link, etc.) on the form since the three fields will only exist in the third table and the record will be saved to the third existing table?

I will need to save the record one at a time from the form to the third existing table after data is entered into the three additional fields. I was thinking a command button on the form that runs a macro to save the record from the query along with info. added to the additional fields. I don’t know how to write such a macro or if this would be the best way to perform this function?

Thanks in advance.

  #2  
Old June 18th, 2004, 11:52 PM
Lynn Trapp
external usenet poster
 
Posts: n/a
Default Transfer Query Info. To Table

To start with, DON'T DO THAT! ;-) It is BAD database design to store the
same data in multiple tables. Use your Union Query as the basis of a Make
Table Query, then open the new table in design view and add the 3 new
fields. Then use that table as the Record source for your form.

--
Lynn Trapp
MS Access MVP
www.ltcomputerdesigns.com
Access Security: www.ltcomputerdeisgns.com/Security.htm


"Delano" wrote in message
...
I am using MS Access 2000. I created a union query from two tables. I am

using the union query to bring up individual records in a form based on a
certain criteria (Ex: [By Serial #]). I need to put three additional fields
on the form so that the user can add information to the record from the
query then save the record to an existing third table. The existing third
table will have all the fields from the union query including the three
additional fields on the form. I have two questions:

What is the best way to handle these three additional fields (properties,

table link, etc.) on the form since the three fields will only exist in the
third table and the record will be saved to the third existing table?

I will need to save the record one at a time from the form to the third

existing table after data is entered into the three additional fields. I
was thinking a command button on the form that runs a macro to save the
record from the query along with info. added to the additional fields. I
don't know how to write such a macro or if this would be the best way to
perform this function?

Thanks in advance.



 




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:09 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.