|
-
Jan 17th, 2004, 05:41 AM
#1
Thread Starter
Hyperactive Member
Create SQL
Hi,
I'm trying to archive my records from one table into another.
This is the SQL I am using:
CreateCommand.CommandText = _
"CREATE TABLE " & "tbl_Arch_Bids_" & Day(Now) & "/" & Month(Now) & "/" & Year(Now) & " SELECT * FROM tbl_Bids"
this creates a table named:
tbl_Bids_Arch_(Day)/(Month)/(YEAR)
but this just seems to error?
I want to copy the records from (not move) tbl_Bids to the newly created table?...
What is wrong with my statement?
Thanks
-
Jan 18th, 2004, 12:24 PM
#2
How about using SELECT INTO?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|