Command Button

ElBenno

Board Regular
Joined
Jun 3, 2005
Messages
97
Hi People,
I was wondering if i was able to use a command button to export the information from the database which has mulitipul tables (subforms) to a word template (this is to replace the Mail Merge Function of Word). also is there a posiblity to use another button to get the information within the database to save as a text (TXT) file, then have it send that text file to an allocated email address.

Please let me know.

Kindest Regards,

Ben
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hi Ben
Rather than export the information into Word, can you not create a report in Access that will have the same effect? Regarding sending the file in a text format to an e-mail recipient, go into the macro screen and have a look at the 'SendObject' command. Once you have written your macro, you can attach that to your button.
HTH, Andrew :)
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,685
Members
448,978
Latest member
rrauni

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top