beginner
09-24-2005, 03:54 PM
hello......
i would like to append a Table records to a remote Table, i only got some coding ref. from some source as below but didn't work, appreciate any adv. Tks.
Dim sql As String
sql = "INSERT INTO " & [remote_Table] (field1, field2) IN & _
" C:\BackUp.mdb SELECT " & [local_Table].field1 & ", " & _
[local_Table].field2 & " FROM [local_Table]"
DoCmd.OpenQuery "sql"
i would like to append a Table records to a remote Table, i only got some coding ref. from some source as below but didn't work, appreciate any adv. Tks.
Dim sql As String
sql = "INSERT INTO " & [remote_Table] (field1, field2) IN & _
" C:\BackUp.mdb SELECT " & [local_Table].field1 & ", " & _
[local_Table].field2 & " FROM [local_Table]"
DoCmd.OpenQuery "sql"