I am trying to write a query ..
What I want the query to do is pull all records that match this criteria. This SQL is the result of an ASP querystring. If a user knows the Primary Account Number (Primary Key), I want them to input it. When they do- it works fine. When they don't input it- it screws up.
I want them to choose one or the other (red or blue).
What is the work around?
[red]Tools | Internet Options | Clear History[/red]
Code:
SELECT * FROM TABLE Requests
WHERE
[red]PrimaryAccountNo LIKE '5'[/red]
[blue]AND Account = 'Bank'
AND AccountMoney > '0'
AND StatusManager LIKE '%';[/blue]
What I want the query to do is pull all records that match this criteria. This SQL is the result of an ASP querystring. If a user knows the Primary Account Number (Primary Key), I want them to input it. When they do- it works fine. When they don't input it- it screws up.
I want them to choose one or the other (red or blue).
What is the work around?
[red]Tools | Internet Options | Clear History[/red]