Hi,
I'm having a bit of an issue..
I'm using ADODB to connect to a Firebird DB via an ODBC driver. I need to run an UPDATE SQL statement. But am having an issue with the ADODB procedure. This is all in an excel Macro.
Dim dbMain As New ADODB.Connection
dbMain.Open "DRIVER=Firebird/InterBase(r) driver;UID=SYSDBA;PWD=masterkey;DBNAME=c:\xxxxx.fdb"
dbMain.Execute ("UPDATE stock SET stm_lot = '19113', LOT_APL_RO_COST = 'T' WHERE pn = '" & pn & "' AND stock_line = '" & sl & "' AND serial_number = '" & serial & "'")
I have verified that all of the variables in the SQL statement are correct. And run the corresponding string in iSQL and it works just fine.
Is there another step that I'm missing?
Thanks
David
However, when I use the code above, I get an automation error.
I'm having a bit of an issue..
I'm using ADODB to connect to a Firebird DB via an ODBC driver. I need to run an UPDATE SQL statement. But am having an issue with the ADODB procedure. This is all in an excel Macro.
Dim dbMain As New ADODB.Connection
dbMain.Open "DRIVER=Firebird/InterBase(r) driver;UID=SYSDBA;PWD=masterkey;DBNAME=c:\xxxxx.fdb"
dbMain.Execute ("UPDATE stock SET stm_lot = '19113', LOT_APL_RO_COST = 'T' WHERE pn = '" & pn & "' AND stock_line = '" & sl & "' AND serial_number = '" & serial & "'")
I have verified that all of the variables in the SQL statement are correct. And run the corresponding string in iSQL and it works just fine.
Is there another step that I'm missing?
Thanks
David
However, when I use the code above, I get an automation error.