I have a Search form (frmSearch) based on the method of Allen Browne (http://allenbrowne.com/ser-62.html) which I highly recommend as it creates queries on the fly. It is based on a query (qrySearch). I can easily export the results to Excel with a short VBA code I found (Send to Excel). What I need is to create labels from these results. I have created a report to generate labels using the Access 2007 Label wizard. This report is also based on the same query as the Search Form.
I thought that if I obtain my search results I could simply send these to the label Report using a macro ("Open Report"). Unfortunately all I get is ALL RECORDS RETURNED, not the search form subset of records in front of me.
I am unable to base the labels Report on the Search Form. Any ideas? Can this be done with a Macro or is it strictly VBA? If VBA, is there an example I can follow?
Thanks in advance.
Walt