I have this code...
sqlStr = "UPDATE tblPaymentHeader SET [Voucher] = '" & varVoucherNum & "'"
appAccess.DoCmd.RunSQL sqlStr
...trying to update an Access 2007 table. It's failing, but the only error it tells me is "The RunSQL action was canceled." I know my connection and all is good because I'm executing a command (appAccess.DoCmd.RunSavedImportExport) just prior to executing this step, and it's working fine. Anybody see what I'm doing wrong?
Thanks!
Scott
sqlStr = "UPDATE tblPaymentHeader SET [Voucher] = '" & varVoucherNum & "'"
appAccess.DoCmd.RunSQL sqlStr
...trying to update an Access 2007 table. It's failing, but the only error it tells me is "The RunSQL action was canceled." I know my connection and all is good because I'm executing a command (appAccess.DoCmd.RunSavedImportExport) just prior to executing this step, and it's working fine. Anybody see what I'm doing wrong?
Thanks!
Scott