neillovell
Programmer
In VBA how can I assign the value of a query to a variable?
I've tried
SQL = "SELECT TotalPoints FROM PlayerTable WHERE ID=123"
Points = DatabaseConnection.Execute SQL
MsgBox TotalPoints
but the Points = line is erroring with "syntax Error" - how can I do this?
I've tried
SQL = "SELECT TotalPoints FROM PlayerTable WHERE ID=123"
Points = DatabaseConnection.Execute SQL
MsgBox TotalPoints
but the Points = line is erroring with "syntax Error" - how can I do this?