473,409 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,409 software developers and data experts.

Export to Excel

Hi!

Is it possible that the result in the subform will export to excel file??
Please help..
Jan 19 '07 #1
5 2160
nico5038
3,080 Expert 2GB
In multiple ways.
For once off situations I just click in the upper left corner to select all and use Ctrl+C and Ctrl+V to get a copy via the clipboard.

The other solution would involve VBA and can be done by using the transferspreadsheet command when there is no additional filter to be taken in account. When there is you can create a query first and use that for the transferspreadsheet command.

Need more info?

Nic;o)
Jan 20 '07 #2
In multiple ways.
For once off situations I just click in the upper left corner to select all and use Ctrl+C and Ctrl+V to get a copy via the clipboard.

The other solution would involve VBA and can be done by using the transferspreadsheet command when there is no additional filter to be taken in account. When there is you can create a query first and use that for the transferspreadsheet command.

Need more info?

Nic;o)
yes I need more info..can you please give me example code?
Jan 21 '07 #3
nico5038
3,080 Expert 2GB
Create a button and activate the OnClick event to enter this line of code:

DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel8, "your table name", "c:/temp/result.xls", True

Replace the "your table name" with your table (or query) and make sure the quotes are still there and change "c:/temp/result.xls" into the path & file you want.

Nic;o)
Jan 21 '07 #4
NeoPa
32,556 Expert Mod 16PB
Hi!

Is it possible that the result in the subform will export to excel file??
Please help..
Cassey,
Your threads include far too little information.
I've asked before that you read through POSTING GUIDELINES: Please read carefully before posting to a forum before posting your questions. Please do so before your next question as our experts should not be expected to work out the question for you as well as the answer.

MODERATOR.
Jan 22 '07 #5
Cassey,
Your threads include far too little information.
I've asked before that you read through POSTING GUIDELINES: Please read carefully before posting to a forum before posting your questions. Please do so before your next question as our experts should not be expected to work out the question for you as well as the answer.

MODERATOR.
Ok Im sorry about that..I am in a hurry that time..Ok I'll explain further..I have a search form..And in that search form I have a subform..When they search the results will display in the subform..I want to export to excel the result in the subform based on the query they search..
Jan 22 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Matt | last post by:
I have an ASP page that calls ASP routines that I created that execute a database query and return the results to a recordset. I then iterate through the recordset and display the data in a table....
5
by: Maria L. | last post by:
Hi, I need to export the content of a DataGrid (in Windows application in C#), into an Excel spreadsheet. Anyone knows how to do this? Any code snippets would help! thanks a lot, Maria
2
by: Siu | last post by:
Hi, I use the following code to export and import a file Excel from resp. into a Web page with the following code: //EXPORT Response.Clear(); Response.Buffer = true; Response.ContentType =...
6
by: Elena | last post by:
I'm trying to export data to an Excel worksheet. I can export the data in the cell values perfectly. I need the code to change a header and footer for the worksheet, not for the columns. Is...
13
by: Hemant Sipahimalani | last post by:
The following piece of code is being used to export HTML to excel. HttpContext.Current.Response.ContentType = "application/vnd.ms-excel"...
5
by: Simon | last post by:
Dear reader, With the export command you can export a query to Excel. By activate this command a form pop's up with the following text:
1
by: smaczylo | last post by:
Hello, I've recently been asked to work with Microsoft Access, and while I feel quite comfortable with Excel, I'm at a complete loss with databases. If someone could help me with this issue I'm...
1
by: CoolFactor | last post by:
MY CODE IS NEAR THE BOTTOM I want to export this Access query into Excel using a command button on an Access form in the following way I describe below. Below you will find the simple query I am...
3
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I have a question for you. I have a .csv file which has many lines of data. Each line has many data fields which are delimited by ",". Now I need to extract part of data from this...
2
hemantbasva
by: hemantbasva | last post by:
Note We need to have a template on server for generating report in multiple sheet as we do not had msoffice on server moreover this require a batch job to delete excel file created by the...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.