|
-
Apr 9th, 2000, 03:13 PM
#1
Thread Starter
New Member
Dim db As Database
Dim rs As Recordset
Dim qdf As QueryDef
Dim strSQL As String
strSQL = "INSERT into table1 SELECT FROM table2 WHERE field = '" & variable & "' "
Set db = OpenDatabase(App.Path & "\database.mdb")
Set qdf = db.CreateQueryDef("")
Set qdf.SQL = strSQL
Set rs = qdf.OpenRecordset(dbOpenSnapshot)
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
|