S
Sin
I have a form with a list box listing values "table 1", "table 2" .... and 2
combo box for year and month selection. The selected values (year and month)
in the combo are set as criteria to run a query.
While the query runs from the same data table, the selection in the list box
(table 1, table 2 ...) actually indicated a criteria for different column
depending on the selection. For e.g. I have a table of data with columns
name, state and poscode, "table 1" could represent a query for postcode
2000-2400 only, while "table 2" represents a query for state NSW only and
"table 3" represents all data etc. each string in the list box represent a
set query (as per name of the report indicated), and the user can simply
chose which report they want for the chosen period without going through the
selection list to select each critierias. Is it possible to set a
relationship between the string in the list box and the query value so that
the query can recognise the selected string as a criteria?
Hope this is clear.
Thanks in advance.
combo box for year and month selection. The selected values (year and month)
in the combo are set as criteria to run a query.
While the query runs from the same data table, the selection in the list box
(table 1, table 2 ...) actually indicated a criteria for different column
depending on the selection. For e.g. I have a table of data with columns
name, state and poscode, "table 1" could represent a query for postcode
2000-2400 only, while "table 2" represents a query for state NSW only and
"table 3" represents all data etc. each string in the list box represent a
set query (as per name of the report indicated), and the user can simply
chose which report they want for the chosen period without going through the
selection list to select each critierias. Is it possible to set a
relationship between the string in the list box and the query value so that
the query can recognise the selected string as a criteria?
Hope this is clear.
Thanks in advance.