Hello, I have an Append Query that insert data from local table to SQL Server table. I tried the following codes in VBA:
CurrentDb.Execute "qryImport", dbSeeChanges
DoCmd.OpenQuery "qryImport"
For some reasons, no error is returned and no data is inserted into the SQL server table. If I manually run the Query, it works! Can anyone please help me? Thanks!