|
-
Mar 12th, 2000, 08:56 AM
#1
Thread Starter
Addicted Member
Lets see if I can explain this. Here the code
Dim dfs As Database
Dim db As Database
Dim dbs As Recordset
Sql1 = "Select * from vac where month between #" & ee & "# and #" & ss & "#"
Set db = OpenDatabase(txtPath)
Set dbs = db.OpenRecordset(Sql1)
Set dtaVac.Recordset = dbs
dtaVac.Refresh
Set dfs = OpenDatabase(txtPath)
dfs.Execute " INSERT INTO vacreport " _
& "SELECT * " _
& "FROM '" & dtaVac.Recordset & "';"
dfs.Close
dbs.Close
db.Close
I want to insert the result of the SQL sql1 into the table vacreport. I try this way with no result can you help!! I'm have a mental block this should be easy to do.
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
|