954,174 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

ASP Search MS SQL Float

Yesterday I converted my site over to MS SQL and now I'm having an issue with part of my site. The search box is supposed to check for a part number the user types in, but it doesn't even come close anymore. In Access the column searched was a Number col. Now the column is a Float. The sql line is:

sql = select * FROM brandList WHERE partno LIKE '%%" & part_no &"'"


This was working in Access with out trouble.

Thanks

hatrickwah
Newbie Poster
13 posts since Jul 2010
Reputation Points: 10
Solved Threads: 0
 

Ignore, I found the answer on MSDN. Floats are no good for SQL statements involving LIKE or = . In this case, I changed the type over to Numeric and now it works fine.

hatrickwah
Newbie Poster
13 posts since Jul 2010
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You