Hi,
Snippet of code that fails is bold in below. BTW INSERT INTO works. DELETE FROM (see below) does not.
--------------------------------------------------------------------------------------
'Opens connection to the database
cnn.Open ConnectionString
'Timeout error in seconds for executing the entire query; this will run for 5 minutes before VBA timesout, but your database might timeout before this value
cnn.CommandTimeout = 300
insertSQL = "DELETE FROM PAC(RIC)"
Debug.Print insertSQL
cnn.Execute insertSQL
cnn.Close
Set cnn = Nothing
Snippet of code that fails is bold in below. BTW INSERT INTO works. DELETE FROM (see below) does not.
--------------------------------------------------------------------------------------
'Opens connection to the database
cnn.Open ConnectionString
'Timeout error in seconds for executing the entire query; this will run for 5 minutes before VBA timesout, but your database might timeout before this value
cnn.CommandTimeout = 300
insertSQL = "DELETE FROM PAC(RIC)"
Debug.Print insertSQL
cnn.Execute insertSQL
cnn.Close
Set cnn = Nothing