Trying to find the ids column if username and password column are both right.
cmdStr = "SELECT [ids] FROM [sessionregister] WHERE [username=@username] AND [password=@password];"
Error code
An expression of non-boolean type specified in a context where a condition is expected, near 'AND'.
Go to the complete details ...