D
David Graham
Here's the deal, I need to create a query that will determine if one table
field is populated, and if it then base the results on that field. If it's
not populated then I need it to pull results based on the content of another
field. All results need to be grouped together in the same recordset. Is
this possible?
Specifically, here's an example:
I'm querying a table that holds information about kids in a school class.
One field in the table is "grade" and another is "birthday". The grade
field is a text field because if the child is not yet in grade 1, then the
field has to be populated with something like "toddler" or "perk". The
birthday field is a date/time field. I need to create a query that will
give me, for example, all kids that are in grade 3. However, if the grade
field is not populated with information, then I need the query to next look
at the birthday field to see if the kid's birthday falls within a preset
date range. All results should be presented in the same recordset so that a
report can be created.
I hope that makes sense. Any feedback is appreciated. Thanks.
field is populated, and if it then base the results on that field. If it's
not populated then I need it to pull results based on the content of another
field. All results need to be grouped together in the same recordset. Is
this possible?
Specifically, here's an example:
I'm querying a table that holds information about kids in a school class.
One field in the table is "grade" and another is "birthday". The grade
field is a text field because if the child is not yet in grade 1, then the
field has to be populated with something like "toddler" or "perk". The
birthday field is a date/time field. I need to create a query that will
give me, for example, all kids that are in grade 3. However, if the grade
field is not populated with information, then I need the query to next look
at the birthday field to see if the kid's birthday falls within a preset
date range. All results should be presented in the same recordset so that a
report can be created.
I hope that makes sense. Any feedback is appreciated. Thanks.