Good morning everyone. I am working on selecting from a database and displaying the results, what should be an easy code to code is turned into a nightmare. My select statement is as follows
Code:
sql2="SELECT * FROM line_data WHERE customerNumber = " & customerNumber
Where CustomerNumber is passed in through a querystring like
www.domain.com/page.asp?custNum=1234567
The error I am getting is
Code:
Microsoft OLE DB Provider for ODBC Drivers error '80040e07'
[Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.
The field customerNumber in the database is text, does that make a difference? Is there a function to change this from a number to text, if the above is the case? Any help would be appreciated
Turk