VBA - Trying to insert records

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have this bit of SQL that is giving me an error on line 30 when trying to
execute.

Error 424, Object Required


I am trying to take the SQL from the Access Query and put it in my Excel doc.

'*****************************************************
Dim SQL As String


10 On Error GoTo Err_cmd_Update_Click

20 SQL = "INSERT INTO [\\pkcfp00\DataBase\MDB
Files\UAT_Info_be].tbl_UAT_Tickets ([Project]) " & _
"SELECT dbo_CS_Problem_Parse_NEW.[Project] " & _
"FROM [\\pkcfp00\DataBase\MDB Files\Project
Management].dbo_CS_Problem_Parse_NEW ;"

30 DoCmd.RunSQL SQL

'***************************************************

I appreciate any help you can provide.
Thank you,
David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top