Bladerunner
Registered User.
- Local time
- Today, 14:30
- Joined
- Feb 11, 2013
- Messages
- 1,799
I have a combo named cbogroup. I have a tblGroup with several records (active, non-active, nursery, etc.). One of the records is *ALL*.
Using the CboGroup the user can pick any of the records. Howeverr, if they pick the *ALL* record, I want the query to pull up animalID based on all records in the TblGroup. If another record is picked (i.e. nursery), then the query will pull up only animalIDs that are in the 'Nursery'. Can I put a (iff then) in a query in order to differentiate a query based on all group records or a query based on only one record?
This can be done in code but not sure about SQL.!
Thanks for the help
Blade
Using the CboGroup the user can pick any of the records. Howeverr, if they pick the *ALL* record, I want the query to pull up animalID based on all records in the TblGroup. If another record is picked (i.e. nursery), then the query will pull up only animalIDs that are in the 'Nursery'. Can I put a (iff then) in a query in order to differentiate a query based on all group records or a query based on only one record?
This can be done in code but not sure about SQL.!
Thanks for the help

Blade