Select ... Into

MvP14

Registered User.
Local time
Today, 23:21
Joined
Apr 15, 2003
Messages
66
Hi,

can anyone tell me whether it is possible to create a new table1 in which all the results of query1 are entered by using the select ... into command? I just don't seem to manage to do it.

Thanks.
 
On the QBE grid, change the query type to a Make Table Query.
 
comment

here is what is have so far:

db.Execute "SELECT Query1 INTO " _
& "[Table1] FROM Datatable; "

Query1 is a query selecting records fro m Datatable
 
Query1

Query1 is a query created using db.CreateQueryDef right before I create table1
 
Ah, the SELECT part of the statement should select the fields, not a table/query object. You don't need to bother with the source table as the query (Query1) will get its information from that.

db.Execute "SELECT * INTO " _
& "[Table1] FROM Query1; "
 

Users who are viewing this thread

Back
Top Bottom