[mso] Re: Access/Excel

I put the code in the click event of a button I placed on a form.  I put a
button on the form, clicked on the 'on click' property builder button,
chose the code builder and inserted the code there.  I chose a form so
other people could also run the export, but you could also use the transfer
spreadsheet command built into macros, select TransferSpreadsheet from the
pull down box and fill in below accordingly.   How do you run your macros?
From the database window or from a form?

hth, Cathy


                                                                                
                       
                      "Glenda Wells"                                            
                       
                      <gwells@xxxxxxxxxxx      To: <mso@xxxxxxxxxxxxx>          
                       
                      >                                                         
                       
                      Sent by:                 cc:                              
                       
                      mso-bounce@freelist                                       
                       
                      s.org                    Subject:  [mso] Re: Access/Excel 
                       
                      10/19/2004 10:08 AM                                       
                       
                      Please respond to                                         
                 ..... 
                      mso                                                       
                       
                                                                                
                       
                                                                                
                       




this is great Cathy (&Jim) I've got a macro to process my data and made
a change so the file I want to export is a table instead of query. where
do I put the code you provided in the macro...this looks like VBA, do I
need something besides a macro?  /g

-----Original Message-----
From: Cathy.Evans@xxxxxxxxx [mailto:Cathy.Evans@xxxxxxxxx]
Sent: Tuesday, October 19, 2004 10:04 AM
To: mso@xxxxxxxxxxxxx
Subject: [mso] Re: Access/Excel


Earlier this year (March Archives) Jim Pettit helped me with the same,
only
I was exporting a table.   This code makes my table and exports to
certain
location on project server.  He said the TransferSpreadsheet only works
on tables.

    DoCmd.SetWarnings False
    DoCmd.OpenQuery "QueryName", acViewNormal, acEdit
    DoCmd.SetWarnings True

    DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9,
"TableMadeByQueryName", "c:\path\sub path\DestinationExcelName.xls"


=20

                      "Glenda Wells"

                      <gwells@xxxxxxxxxxx      To: <mso@xxxxxxxxxxxxx>

                      >

                      Sent by:                 cc:

                      mso-bounce@freelist

                      s.org                    Subject:  [mso]
Access/Excel                          =20
                      10/19/2004 09:27 AM

                      Please respond to
.....
                      mso

=20

=20





Hi Gurus.
...been so busy can't see straight but lurking about when I get a
chance.

I run a macro in an Access DB to extract data, after which I export a
query to a network shared space as an Excel worksheet.

Would y'all please gimme clues on automating this process?

thanks. /glenda








-----------------------------------------------------------------------------------------------------
The information transmitted is intended only for the person
or entity to which it is addressed and may contain proprietary,  
business-confidential and/or privileged material.
If you are not the intended recipient of this message you 
are hereby notified that any use, review, retransmission, 
dissemination, distribution, reproduction or any action taken
in reliance upon this message is prohibited. If you received
this in error, please contact the sender and delete the 
material from any computer.  Any views expressed in this message
are those of the individual sender and may not necessarily reflect 
the views of the company.
-------------------------------------------------------------------------------------------------------

*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in 
the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also allow 
you to change your email settings to digest or vacation (no mail).
http://www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a 
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with 
instructions.  Once you are a member of the files group, you can go here to 
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

Other related posts: