Ascentient
IS-IT--Management
- Nov 4, 2002
- 267
I have a report that generates haul charges based on a couple of calculations. No problem there.
However, the data is split into tables for each month. The user would like the ability to select multiple months to generate this report on.
I currently have a macro that is running an append query to a table I created. The macro contains info to open my table, clear it out, and then append all three months worth of data into it. (Well its actually filtered down, but its not important at this point.) The report is then run based on a date range the user enters from a form.
My first thought was to create a list box and populate it with a list of all tables in the current database. Then I would take the selections the user entered from it and run an sql query to append data from those tables into my table. And then let the user run the report.
I think I can handle writing the sql append statements, but I am not sure how to populate the list box with the table names.
Any suggestions on where to start would be appreciated.
Ascent.
However, the data is split into tables for each month. The user would like the ability to select multiple months to generate this report on.
I currently have a macro that is running an append query to a table I created. The macro contains info to open my table, clear it out, and then append all three months worth of data into it. (Well its actually filtered down, but its not important at this point.) The report is then run based on a date range the user enters from a form.
My first thought was to create a list box and populate it with a list of all tables in the current database. Then I would take the selections the user entered from it and run an sql query to append data from those tables into my table. And then let the user run the report.
I think I can handle writing the sql append statements, but I am not sure how to populate the list box with the table names.
Any suggestions on where to start would be appreciated.
Ascent.