what's wrong with this code?
rsDisplay.setSQLText("SELECT JobInfo.* " _
& "FROM JobInfo " _
& "WHERE Location=" & session("Location"
)
I'm getting this error:
Too few parameters. Expected 2.
When I put the single quotes in I get data type mismatch, because a number is being passed.
Is there something I don't know about session variables in sql statements?
rsDisplay.setSQLText("SELECT JobInfo.* " _
& "FROM JobInfo " _
& "WHERE Location=" & session("Location"
I'm getting this error:
Too few parameters. Expected 2.
When I put the single quotes in I get data type mismatch, because a number is being passed.
Is there something I don't know about session variables in sql statements?