My Assistant
![]() ![]() |
|
|
Apr 6 2012, 12:23 PM
Post
#1
|
|
|
UtterAccess Addict Posts: 124 |
Access 2007 I have a continuous form that displays filtered data from a table. I want to create a button that will export the filtered data to Excel. This would be to a NEW excel workbook. I have not found anything that will work. Thanks, Loren |
|
|
|
Apr 6 2012, 12:32 PM
Post
#2
|
|
|
Access Wiki and Forums Moderator Posts: 48,114 From: SoCal, USA |
Hi Loren,
Is the form based on a table or a query? Just my 2 cents... (IMG:style_emoticons/default/2cents.gif) |
|
|
|
Apr 6 2012, 12:34 PM
Post
#3
|
|
|
UtterAccess Guru Posts: 594 |
Hi,
Can you be more specific? Is the form based on a query that filters the data? Is the filtering being done via controls on the form, pressing the filter buttons on the toolbar etc? As for the excel file, are you just wanting to export the raw unformatted data. Can the Excel file be otherwise blank or does it require other stuff in it? JonSmith |
|
|
|
Apr 6 2012, 01:13 PM
Post
#4
|
|
|
UtterAccess Addict Posts: 124 |
The form is filtering the data from the table via several unbound controls. The controls create a filter string and it is executed via a FILTER button.
I am looking to export the data into Excel just like it appears in the data sheet view. |
|
|
|
Apr 6 2012, 01:24 PM
Post
#5
|
|
|
UtterAccess Guru Posts: 594 |
If you created a Query with parameters based on the controls in your form then you could just export the query and use the inbuilt docmd.OutputTo Method.
|
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 26th May 2013 - 02:11 AM |