Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Export to Excel in MS Access

 
   Database Forums (Home) -> General Discussions RSS
Next:  SQLServer and network shares  
Author Message
Rohit




Joined: Jun 29, 2005
Posts: 9



(Msg. 1) Posted: Wed Jul 20, 2005 6:37 am
Post subject: Export to Excel in MS Access

Hi,

I have one form in access application which shows various fields from the database. The fields are like No of PCs a client has,No of employees,revenue etc.

Need of the user is to filter the data on the form and export the results.
I am using a Qury as the base for this form.Can I do it easily or i need to write the code to do this.

Secondly can I provide a separate interface to allow user to Query and extract the data.

Say, PC between <SomeRange> AND/ OR
Revenue Between <Some Range>

whatever result comes will be exported to the Excel file.

Please tell me if you have any solution.

Thanks in Advance.

Rohit

 >> Stay informed about: Export to Excel in MS Access 
Back to top
Login to vote
rexecampbell

External


Since: Jul 20, 2005
Posts: 1



(Msg. 2) Posted: Wed Jul 20, 2005 2:13 pm
Post subject: Re: Export to Excel in MS Access [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

If you can utilize a query to create the data you want, then you can do
a simple trick of exporting the data within Access to Excel with very
little code.

DoCmd.OutputTo acOutputQuery, "Name Of Query", acFormatXLS

This can be assigned to a button and you have your results. This works
great if the query is based off the actual form.

Enjoy!

 >> Stay informed about: Export to Excel in MS Access 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Export SPs? - I have uses DTS Import/Export wizard to export all my tables from one databse to another on the same server. How do I export all of my stored procedures and UDFs? Thanks, lq

Primary Key fails to copy in db Export - Currently, I'm exporting a database from production to local (test) machine. I've done this several times without problem, but during the last few days, the primary keys have failed to export. Would anyone know what options might keep the keys from..

Importing from Excel problems - What do others do if you need to import excel files into SQL Server? My main problems are 1) zipcode formatting issues. If the column is a mix of zip and zip+4, I have problems retrieving all zipcodes. 2) If the last column contains NULL no information...

How to import several excel files using one dts package - It's very simple import, without any data modifications; from several excel files to one table. I tried the wisard and it gives me selection for only one file. I am not used to create DTS packages and schedule jobs, so I would need some help. Thank you...

importing multiple excel files - Hi I have multiple excel files of the same format in a directory. They are called book1.xls, book2.xls, book3.xls and so on. What is the easiest way to import the tab named sheet1 from each of the excel files to a databse using SQL server 2000 enterpris...
   Database Forums (Home) -> General Discussions All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]