Hello all,
This is a new project that I'm working on using Access 2000 version to modify/automate the company's current database. I'm dealing with ugly unnormalized database and they don't want to change anything at this time.
What the users would like to do is produce a report for certain columns, from their selections, do some calculations such as AVG, MIN, MAX, etc then output to Excel.
I have created a form with a list box to allow user(s) to select multiple selections. I have a code to gather their selections then insert into a table, but this is only good if I'm querying for records or rows and not columns. The list box shows the names of all the columns (QTY1 through QTY53).
The backend is SQL Server. Below is the table's layout:
Item Number
Store Number
FiscalYear
QTY1
QTY2
QTY3
QTY4
(through QTY53)
The QTY# columns represents Week# that has totals in their inventory for that week so this is a Number Field. First week of January is QTY49 - and this vary from year to year. Can't figure out how they calculate this whether it must have at least 3-5 days or what?
I'm not sure how to refer to the Column Name(s) from the list box selection(s) for reporting.
Can you help?
Thanks and Have a Great Day!
This is a new project that I'm working on using Access 2000 version to modify/automate the company's current database. I'm dealing with ugly unnormalized database and they don't want to change anything at this time.
What the users would like to do is produce a report for certain columns, from their selections, do some calculations such as AVG, MIN, MAX, etc then output to Excel.
I have created a form with a list box to allow user(s) to select multiple selections. I have a code to gather their selections then insert into a table, but this is only good if I'm querying for records or rows and not columns. The list box shows the names of all the columns (QTY1 through QTY53).
The backend is SQL Server. Below is the table's layout:
Item Number
Store Number
FiscalYear
QTY1
QTY2
QTY3
QTY4
(through QTY53)
The QTY# columns represents Week# that has totals in their inventory for that week so this is a Number Field. First week of January is QTY49 - and this vary from year to year. Can't figure out how they calculate this whether it must have at least 3-5 days or what?
I'm not sure how to refer to the Column Name(s) from the list box selection(s) for reporting.
Can you help?
Thanks and Have a Great Day!