0

I have an update query in Excel 2013 vba. Till recently it worked. Now I got the error "Query ' ' is corrupt" in the "adoConn1.Execute" command. I know there is an Access Issue caused by November Office update. The problem is that I got the error in Excel and the problematic Office updates where not installed in my PC. Can you help me?

strUpdateQuery= "Update [Table$] " & " SET FieldName = " & FieldValue

sConn1 = "Provider=Microsoft.ACE.OLEDB.12.0;" & _
"Data Source=" & PathDB & "\" & FileNameDB & ";" & _
"Extended Properties=""Excel 12.0;HDR=YES"""

Set adoConn1 = New ADODB.Connection
adoConn1.Open sConn1
adoConn1.Execute strUpdateQuery, flagUpdateResult, adExecuteNoRecords

adoConn1.Close
If Not adoConn1 Is Nothing Then Set adoConn1 = Nothing

0 Answers0