A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Export filtered records



 
 
Thread Tools Display Modes
  #1  
Old December 4th, 2009, 08:44 PM posted to microsoft.public.access.forms
Linda
external usenet poster
 
Posts: 661
Default Export filtered records

Hi,

I am trying to export certain records that have been filtered.
When I export it to excel, save the file and then reopen the file all
records are displayed in excel. I woul dlike only the records that I have
filtered to export from Access to Excel. Any suggestions?

Thanks
Linda
  #2  
Old December 4th, 2009, 11:30 PM posted to microsoft.public.access.forms
fredg
external usenet poster
 
Posts: 4,386
Default Export filtered records

On Fri, 4 Dec 2009 12:44:01 -0800, linda wrote:

Hi,

I am trying to export certain records that have been filtered.
When I export it to excel, save the file and then reopen the file all
records are displayed in excel. I woul dlike only the records that I have
filtered to export from Access to Excel. Any suggestions?

Thanks
Linda


Exporting to Excel what? How? What version of Access?
The simplest method to export filtered records is to create a query
that contains just the records you want to export.
Then export the query data.

DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9,
"QueryName", "C:\MyFolder\ASpreadsheet.xls", True

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
  #3  
Old December 8th, 2009, 02:48 PM posted to microsoft.public.access.forms
Linda
external usenet poster
 
Posts: 661
Default Export filtered records

This is what my form does.
I have an active control (excel sheet). All records are loaded on Open
using a query. The user wil then use the filter feature on the excel sheet
to filter out their results. From this point on, I would like the user to
export the filtered info to Excel again from the active control. Once
outputted to Excel, the user must save the file. However, when you go to
open the saved file, all records are in the file rather than the filtered
output.

Linda

"fredg" wrote:

On Fri, 4 Dec 2009 12:44:01 -0800, linda wrote:

Hi,

I am trying to export certain records that have been filtered.
When I export it to excel, save the file and then reopen the file all
records are displayed in excel. I woul dlike only the records that I have
filtered to export from Access to Excel. Any suggestions?

Thanks
Linda


Exporting to Excel what? How? What version of Access?
The simplest method to export filtered records is to create a query
that contains just the records you want to export.
Then export the query data.

DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9,
"QueryName", "C:\MyFolder\ASpreadsheet.xls", True

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:06 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.