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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can you use code to make a table?

Status
Not open for further replies.

poctok

Technical User
Jun 1, 2001
15
0
0
GB
I currently have a make table query doing this job and it works fine. But now I want to pass a variable (lastupdate stored in a table) to the query and can't see how to do it?

Can I replace the query with VBA? and that way pass it the variable?

Any and all help would be appreciated.
Thanks
Nicky
 
Hi Nicky,

yes, you can use VBA to do 'Make Table Query'.
Use "SELECT fields INTO new table FROM source WHERE criteria".

Take a look at your built-in make-table query, go to VIEW - SQL. That's how you create a SQL statement in module. You just have to add the WHERE criteria if you want to make table from the last updated records only.

Good luck!
Tin Tin
 
Cheers Tin Tin.
Spot on!
Nicky
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top