A
Amanda
I've already done this... but think I did it the hard way. I'm asking
for the best way to do this.
I have one table with data that's viewed in a listbox. (The table
contains inventory items and related facts.) The list box can be sorted
over 25 different ways. (For example, the list can be sorted by
quanity, ascending and descending. Also, you can enter a date range and
view records only between that range, and then set sort by quanity,
ascending or descending.)
I obviously have the option of creating 25 different queries, one for
each possible configuration: if the user checks this box and this box,
then a macro sets the RowSource for the listbox equal to a particular
query based on those check boxes. But, that requires making 25
different queries. I'm only dealing with one table... just trying to
sort it various ways and also refine it (limit it to particular
records).
Any suggestions for the best way of doing this? After the records are
sorted/limited as needed for the user in the listbox, it then needs to
be able to be exported to Excel or viewed in an Access report.
Thank you! I hope my question wasn't too vague...
for the best way to do this.
I have one table with data that's viewed in a listbox. (The table
contains inventory items and related facts.) The list box can be sorted
over 25 different ways. (For example, the list can be sorted by
quanity, ascending and descending. Also, you can enter a date range and
view records only between that range, and then set sort by quanity,
ascending or descending.)
I obviously have the option of creating 25 different queries, one for
each possible configuration: if the user checks this box and this box,
then a macro sets the RowSource for the listbox equal to a particular
query based on those check boxes. But, that requires making 25
different queries. I'm only dealing with one table... just trying to
sort it various ways and also refine it (limit it to particular
records).
Any suggestions for the best way of doing this? After the records are
sorted/limited as needed for the user in the listbox, it then needs to
be able to be exported to Excel or viewed in an Access report.
Thank you! I hope my question wasn't too vague...