M
michalaw
I'm trying to construct a macro that will allow users to export the results
of any query in a database to Excel, by either selecting the query from a
list, or typing the name of the query into an InputBox.
Is it possible to use the value of a control on a form, or the value entered
in a InputBox, as the table name argument with DoCmd.OutputTo or
DoCmd.TransferSpreadsheet?
Is it possible to get Access to populate a listbox with the names of all the
queries in the database?
If anyone can tell me how to write the code that accomplishes either of
these two goals, I'd appreciate it.
of any query in a database to Excel, by either selecting the query from a
list, or typing the name of the query into an InputBox.
Is it possible to use the value of a control on a form, or the value entered
in a InputBox, as the table name argument with DoCmd.OutputTo or
DoCmd.TransferSpreadsheet?
Is it possible to get Access to populate a listbox with the names of all the
queries in the database?
If anyone can tell me how to write the code that accomplishes either of
these two goals, I'd appreciate it.