Is there a problem using cdbl with a dsn? I have a Select Case statment tht works fine on iis with a dsnless connection but throws this error once it is online with a dsn:
Microsoft OLE DB Provider for ODBC Drivers error '80040e07'
[Microsoft][ODBC Microsoft Access Driver] Invalid use of Null
/listings.asp, line 158
This is the Select Case Statement:
Case 3
Sql="SELECT ID, thumbpic, proptype, propaddress, propprice, city, salestatus, propdesc, propdisdat, propactive FROM listings WHERE propactive=" & "'Yes'" & " AND CDBL(propprice) BETWEEN " & CDBL(sbprice) & " AND " & CDBL(stprice) & " ORDER BY ID Desc"
I know a number field in the db would have been better but I am dealing with the hand I was dealt.
Any ideas why this is happening? Thanks in advance
Microsoft OLE DB Provider for ODBC Drivers error '80040e07'
[Microsoft][ODBC Microsoft Access Driver] Invalid use of Null
/listings.asp, line 158
This is the Select Case Statement:
Case 3
Sql="SELECT ID, thumbpic, proptype, propaddress, propprice, city, salestatus, propdesc, propdisdat, propactive FROM listings WHERE propactive=" & "'Yes'" & " AND CDBL(propprice) BETWEEN " & CDBL(sbprice) & " AND " & CDBL(stprice) & " ORDER BY ID Desc"
I know a number field in the db would have been better but I am dealing with the hand I was dealt.
Any ideas why this is happening? Thanks in advance