Hi,
I want to code inline sql in VBA to update a table that has one field to a variable.
Table name: tbl_User_ID
Field name: Login
My SQL:
strSQL = "UPDATE tbl_User_ID SET tbl_User_ID.Login = " & hold_logon_id
DoCmd.RunSQL strSQL
In debug mode when I hover over the variable hold_logon_id it shows "cfresh", when I hover over strSQL it shows strSQL = UPDATE tbl_User_ID SET tbl_User_ID.Login = "cfresh" but when I step to the DoCmd.RunSQL a dialog displays
"Enter Parameter Value"
cfresh
Can you tell what I am missing?
Thanks!
I want to code inline sql in VBA to update a table that has one field to a variable.
Table name: tbl_User_ID
Field name: Login
My SQL:
strSQL = "UPDATE tbl_User_ID SET tbl_User_ID.Login = " & hold_logon_id
DoCmd.RunSQL strSQL
In debug mode when I hover over the variable hold_logon_id it shows "cfresh", when I hover over strSQL it shows strSQL = UPDATE tbl_User_ID SET tbl_User_ID.Login = "cfresh" but when I step to the DoCmd.RunSQL a dialog displays
"Enter Parameter Value"
cfresh
Can you tell what I am missing?
Thanks!