make table query/sql

  • Thread starter Thread starter david white
  • Start date Start date
D

david white

Dim table1 as string
Dim db1 As Database
Set db1 = CurrentDb
table1 = "newtable"
select1="select field1 into table1 from oldtable"
db1.execute "select1"

works find except that it puts it into a table called
table1.
I want it to go into a table called "newtable"

Help is appreciated
 
select1="select field1 into " & table1 & " from oldtable"

Ron W
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top