charlesfchang
New member
- Local time
- Today, 10:37
- Joined
- Jun 18, 2013
- Messages
- 6
Hello All,
I was planning to use the said commands above via vba. (UPDATE SET of SQL)
but when i run the code, it give me a syntax error
in addition to this, tblnum and ordnum will be null before running the command.
I was planning to use the said commands above via vba. (UPDATE SET of SQL)
Code:
DoCmd.SetWarnings False
'adds the
strSQL = "UPDATE tblCurrentOrder" & TblNum & _
" SET Table = '" & TblNum & "', OrderNumber = '" & OrdNum & "';"
DoCmd.RunSQL strSQL
DoCmd.SetWarnings True
but when i run the code, it give me a syntax error
in addition to this, tblnum and ordnum will be null before running the command.