G'day from Australia,
I am currently putting together a database to manage the cattle we run out here on the station (6000 head).
I want to be able generate standard reports which are based on certain criterias I select from a series of drop down menus in a form.
I am very close, as the reports work perfectly when I choose a criteria from the ALL the drop lists, but on many occassions I won't want to be so specific! eg. List all sales on cattle.
Currently I have a form which has a series of drop-down lists that are dynamically reference other tables. "eg. "Which breed do you want to report on ?" = The drop down list displays all the breeds from the table "tb_breed" ie. hereford, angus, crossbred etc
PROBLEM - Most times though I want to be able to select "ALL" breeds rather than being so specific.
QUESTION(1) - Can I have "all" appear in the list. So in the report it will display all the cattle, no just a specific breed.
The SQL in the query is currently :
Where (tb_StockManagement.breed)=[forms]![fm_formgenerator]![breed]!
QUESTION(2) - Do I need to use an "If" statement?
Your support would be greatly appreciated.
Cheers
Tim
I am currently putting together a database to manage the cattle we run out here on the station (6000 head).
I want to be able generate standard reports which are based on certain criterias I select from a series of drop down menus in a form.
I am very close, as the reports work perfectly when I choose a criteria from the ALL the drop lists, but on many occassions I won't want to be so specific! eg. List all sales on cattle.
Currently I have a form which has a series of drop-down lists that are dynamically reference other tables. "eg. "Which breed do you want to report on ?" = The drop down list displays all the breeds from the table "tb_breed" ie. hereford, angus, crossbred etc
PROBLEM - Most times though I want to be able to select "ALL" breeds rather than being so specific.
QUESTION(1) - Can I have "all" appear in the list. So in the report it will display all the cattle, no just a specific breed.
The SQL in the query is currently :
Where (tb_StockManagement.breed)=[forms]![fm_formgenerator]![breed]!
QUESTION(2) - Do I need to use an "If" statement?
Your support would be greatly appreciated.
Cheers
Tim