SQL Error when there is not text field
I am getting my butt kicked here but the primary key is a int so this error makes no sense? I am wondering if the use of ? is the issue in the actual query? How do I change this placeholder variable?
[Microsoft][ODBC SQL Server Driver][SQL Server]The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator.
Attached is the details file.