bs0d
Well-known Member
- Joined
- Dec 29, 2006
- Messages
- 622
I need to query table contents where some general items are met, and item id's are not contained in an array.
Example:
Does this make any sense? I need to know how to add an array to a query since I can't hard-code the list each time, and the array can be a different size each time, so using array variables doesn't make sense here. Thanks
Example:
Code:
SELECT LOOKUP.*, LOOKUP.Var FROM LOOKUP WHERE ((LOOKUP.Name)="test" Or (LOOKUP.Name)="test2" AND ((LOOKUP.Type)=3) AND ((LOOKUP.Var) <> ("array", "of", "items")))