I fixed it already! Seems Access looks for ' ' around the values.
i.e., this code worked
"UPDATE [Contract Line Items] set CONTRACTNO = '" + tmpContractNo + "' where CONTRACTNO = '" + oldContractNo + "'"
User Profile
Collapse
-
Error Executing Query
Hi All,
I am trying to execute a query in my VB Code for this Access application. THe code i have is:
Dim dbcon227 As Database
Dim qryDeff As QueryDef
Dim dbrs2, rs As Recordset
Dim strSQL As String
strSQL = "Update [Contract Line Items] set CONTRACTNO = tmpContractNo where CONTRACTNO = oldContractNo"
...
No activity results to display
Show More
Leave a comment: