tacieslik
Registered User.
- Local time
- Today, 16:21
- Joined
- May 2, 2001
- Messages
- 244
I have attached a database that contains a problem I've been tring to solve for some time.
I have a table (tblInventory) and a form (frmFilter). The frmFilter has 6 check boxes and 7 combos. When the check boxes are true, the combos are enabled and these are bound to the relevant fields within my tblInventory. Basically the user will decide which items he will want to filter by and then choose the criteria from the combos. There are 7 combos because one of them is a second 'Stored Time' combo for specifiying a date range.
What I want to achive is when the View Query button is pressed, a Definition Query be created and the relevant SQL string be built from the criteria given. So if a check box for an item is False, it will not be part of the query.
I don't know if this is going to be the best way of doing this and I'm a bit limited on knowledge to progress much further so I would appritiate any help and advice you guys can give me.
TIA
I have a table (tblInventory) and a form (frmFilter). The frmFilter has 6 check boxes and 7 combos. When the check boxes are true, the combos are enabled and these are bound to the relevant fields within my tblInventory. Basically the user will decide which items he will want to filter by and then choose the criteria from the combos. There are 7 combos because one of them is a second 'Stored Time' combo for specifiying a date range.
What I want to achive is when the View Query button is pressed, a Definition Query be created and the relevant SQL string be built from the criteria given. So if a check box for an item is False, it will not be part of the query.
I don't know if this is going to be the best way of doing this and I'm a bit limited on knowledge to progress much further so I would appritiate any help and advice you guys can give me.
TIA