I've got 28 queries collecting a sub-set of table data based on a single criteria in a field of the QBE. Now some of the those 28 queries exclude certain fields.
What I ideally want is a final query result that combines all those queries. I have tried UNION but that is not compatible with my ODBC connection to a 3rd party application. What is compatible is a table or a basic select query.
But maybe I am doing this all wrong (newbie here). Is it possible to control which QBS fields are added into the result of a query on a per record basis through criteria defined in another QBS field? Or is it a subquery solution I should be looking at??
Basically I need the query to decide if the data in a field for each record is added or not to a final output datasheet based on criteria listed in a master field.
An example: Final Query result --> If(Car == Blue) THEN display related ABS number, ELSE set to NULL
Cars ABS
Blue 656
Green 243
Output Query:
Cars ABS
Blue 656
Green
There are about 40 fields, 5 of which may or may not have their data passed to the output depending on the value in the master field for each record.
I hope this makes some vague sense!
What I ideally want is a final query result that combines all those queries. I have tried UNION but that is not compatible with my ODBC connection to a 3rd party application. What is compatible is a table or a basic select query.
But maybe I am doing this all wrong (newbie here). Is it possible to control which QBS fields are added into the result of a query on a per record basis through criteria defined in another QBS field? Or is it a subquery solution I should be looking at??
Basically I need the query to decide if the data in a field for each record is added or not to a final output datasheet based on criteria listed in a master field.
An example: Final Query result --> If(Car == Blue) THEN display related ABS number, ELSE set to NULL
Cars ABS
Blue 656
Green 243
Output Query:
Cars ABS
Blue 656
Green
There are about 40 fields, 5 of which may or may not have their data passed to the output depending on the value in the master field for each record.
I hope this makes some vague sense!