If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Create report from filtered recordset on form
I have a form which allows users to filter records based on certain criteria
(via the built-in filter functions). I would like to have a button which will open a datasheet view of the filtered recordset so that the user can export it to excel, word, etc. I can't just use the built-in Datasheet view because there are subforms on the form which contain data that I would need to have available on the datasheet. I think what I really need is the ability to save the current recordset as a query so that I can display the resulting records, but am unsure as to how to do it. Can any of you help me out? Any help would be greatly appreciated! |
#2
|
|||
|
|||
Hi JRB.
"JRB" wrote: I have a form which allows users to filter records based on certain criteria (via the built-in filter functions). I would like to have a button which will open a datasheet view of the filtered recordset so that the user can export it to excel, word, etc. I can't just use the built-in Datasheet view because there are subforms on the form which contain data that I would need to have available on the datasheet. I think what I really need is the ability to save the current recordset as a query so that I can display the resulting records, but am unsure as to how to do it. Try the following: Create another form that contains all columns that need to be exported. In the event procedure of the button on the first form, enter this: DoCmd.OpenForm "OtherForm", acFormDS, , Me.Filter -- Regards, Wolfgang |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Has anyone seen this behaviour? What might it be? | tw | General Discussion | 4 | June 30th, 2005 03:23 PM |
Requerying a pop up form to display in the main form | Jennifer P | Using Forms | 13 | April 5th, 2005 06:59 PM |
Design help, please | SillySally | Using Forms | 27 | March 6th, 2005 04:11 AM |
Printing Report on Recordset Using "Filter by Form" - Error Messag | Stepney_Clint | Using Forms | 0 | January 7th, 2005 08:17 PM |
Still Hoping for help with a Query problem | Don Sealer | Using Forms | 15 | November 13th, 2004 06:24 AM |