I realised not long ago that the sql statement cannot have the variable name in it within the quotes.
Your statement might work rewritten like that:
"Update ID set Key = " & NEWID & " where UID = 1"
If you had a string to pass instead of a number,
"Update ID set Key...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.