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  dBforums > PC based Database Applications > Microsoft Access > export form to excel file

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-11-11, 10:18
tdsydney tdsydney is offline
Registered User
 
Join Date: Jun 2011
Posts: 8
Question export form to excel file

Hi Guys,

I am developing an Access application that requires user signature before accepting input to the tables.

What happens is: when a client comes in and place a (share trading) order, I will open an Access form, and fill in client’s details (in main form) and details of a number of transactions orders ( in sub form). Before saving these inputs to the tables, I wish to press a button to “export” or write them into specific cells in an Excel file (in a format I've already created), then print it out for client to sign.

I am pretty familiar with VBA in Excel but totally clueless in Access. Any help with this is much appreciated !

Cheers,
TeeDee
Reply With Quote
  #2 (permalink)  
Old 07-11-11, 12:47
Sam Landy Sam Landy is offline
Registered User
 
Join Date: May 2004
Location: New York State
Posts: 931
Link to the Excel spreadsheet in Access (see DoCmd.TransferSpreadsheet in the Access help file for details). When you hit the final approval button, have VBA open the linked file and add the record into it.

Make sure the Excel file is closed before hitting the approval button in the Access form. The Excel file sometimes gets screwed up when that happens.

This assumes that you're using a different table for the RecordSource of the Access form (that's how I understand your description). If that isn't the case, you can use the linked table as the RecordSource.

Sam
Reply With Quote
  #3 (permalink)  
Old 07-16-11, 01:23
tdsydney tdsydney is offline
Registered User
 
Join Date: Jun 2011
Posts: 8
Thanks Sam ! It works !
Reply With Quote
  #4 (permalink)  
Old 07-17-11, 19:19
Sam Landy Sam Landy is offline
Registered User
 
Join Date: May 2004
Location: New York State
Posts: 931
Great! I'm happy for you.

You're welcome,

Sam
Reply With Quote
Reply

Tags
access, excel, export, form

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On