G
Guest
MS Access 2K, Windows XP
====================
Hi,
I have a form to search for data (specifying date range, keywords etc.) and
the results are displayed in a list on the form.
I also have a button to export the results to Excel, using a query that has
"[Forms]![frmName]![controlName]" specified in the criteria, so that it will
export results that match the search criteria specified on the form. I'm
using DoCmd.TransferSpreadSheet command to transfer data.
Now, I have to modify the form so that a user can select displayed records
from the list and export only those records that have been selected in the
list.
I'm at somewhat of a loss on how to approach this, and will appreciate any
pointers/ideas. One approach that I can think of is to create a temp table
containing the IDs for the records selected from the list, and add another
criteria to the query for the ID field - something like "select * from
tmpTable".
If you know of a better idea to accomplish this, please let me know.
Thanks!
-Amit
====================
Hi,
I have a form to search for data (specifying date range, keywords etc.) and
the results are displayed in a list on the form.
I also have a button to export the results to Excel, using a query that has
"[Forms]![frmName]![controlName]" specified in the criteria, so that it will
export results that match the search criteria specified on the form. I'm
using DoCmd.TransferSpreadSheet command to transfer data.
Now, I have to modify the form so that a user can select displayed records
from the list and export only those records that have been selected in the
list.
I'm at somewhat of a loss on how to approach this, and will appreciate any
pointers/ideas. One approach that I can think of is to create a temp table
containing the IDs for the records selected from the list, and add another
criteria to the query for the ID field - something like "select * from
tmpTable".
If you know of a better idea to accomplish this, please let me know.
Thanks!
-Amit