|
-
Jun 6th, 2010, 08:47 AM
#2
Re: Conversion Error
If caseID and CustomerID are numbers then you can't do this:
(tblCustomers.CustomerID = @FilterText) OR
(tblCases.CaseID = @FilterText) OR
Since your FilterText is a string... when SQL encounters 12 (say for the CaseID) ... it tries to convert your FilterText (which is "h" ) to a number... "h" isn't a valid number and so the error is thrown.
-tg
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|