I have done a sql query on a table and have the needed info in a recordset... My problem is now that i have the recordset i want to run an insert sql to put the info in a table....here is what i have
Dim pref As String
pref = rec(1).Value
DoCmd.RunSQL ("insert into ContactInfo(prefix) values( " & pref & " )"
...the error is in the sql statement...i know it is something small...can anyone correct my line of code? thanks a lot
Dim pref As String
pref = rec(1).Value
DoCmd.RunSQL ("insert into ContactInfo(prefix) values( " & pref & " )"
...the error is in the sql statement...i know it is something small...can anyone correct my line of code? thanks a lot