Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

update table from query

Status
Not open for further replies.

5166narda

Programmer
Jul 9, 2002
35
US
I know this is easy but I can not think today - I have a report that is created from a query. I want to save the query data in a table to be accessed at a later time. How do I do this??? I can run the query but how do I assign the results to a table.....
 
Turn the query into a Make Table, then enter the name of the table that you want to create.

John
 
5166narda . . . . .

Do you want to append or overwrite when saving the results?

TheAceMan [wiggle]

 
in that case just change the first line to

insert into tablename (field1, field2, field3)
select < and all the rest of it >
from
where
blah blah

John
 
do I have to do something special with the tablename - it is giving me an error - expected end of table..
 
Exactly what is the SQL you have got at the moment?

&quot;Tablename&quot; is the name of the table that it will be added to, so must be the name of an existing table within your database.

John
 
It is a valid tablename. Do I need to define the table as a recordset first? The query is a result of allot of tables and then I want to store the values in one specific table.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top