Hey, I seem to be having little joy with my previous detailed posting, so I'll try something a bit more concise...
Can I put an iif statement in a 'where' clause, such that if a value is passed into a query from an ASP page it can dynamically decide what to include within the 'where' clause?
e.g.
Select * from Shops WHERE IsActive=true
IIf SellsBooks_IN=true then AND SellsBooks=true
IIf SellsClothing_IN=true then AND SellsClothing=true
If there's any way this can be done, I'd much appreciate some help!
Can I put an iif statement in a 'where' clause, such that if a value is passed into a query from an ASP page it can dynamically decide what to include within the 'where' clause?
e.g.
Select * from Shops WHERE IsActive=true
IIf SellsBooks_IN=true then AND SellsBooks=true
IIf SellsClothing_IN=true then AND SellsClothing=true
If there's any way this can be done, I'd much appreciate some help!