how do i auto generate a letter from access database

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have my clients in an access database. I would like to configure a
"button" on the form into which I enter client data that would automatically
generate a letter for that client record.

Any help greatly appreciated.
 
Create the letter as an Access report and use a button to open it as a
single record. The line of code to open the report would be something like:

DoCmd.OpenReport "The Letter" , , , , "ClientID =" & Me.txtClientID

Where "The Letter" is you report and txtClientID is the text box which holds
the ClientID value on your form.

Or if you're feeling frisky, you can write the letter in Word and use
automation to fill the data. Have a look at this code on my website:

http://www.datastrat.com/Code/WordMerge.txt
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access Downloads
http://www.datastrat.com
http://www.mvps.org/access
 
Arvin Meyer said:
Create the letter as an Access report and use a button to open it as a
single record. The line of code to open the report would be something like:

DoCmd.OpenReport "The Letter" , , , , "ClientID =" & Me.txtClientID

Where "The Letter" is you report and txtClientID is the text box which holds
the ClientID value on your form.

Or if you're feeling frisky, you can write the letter in Word and use
automation to fill the data. Have a look at this code on my website:

http://www.datastrat.com/Code/WordMerge.txt
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access Downloads
http://www.datastrat.com
http://www.mvps.org/access




Thank you Marvin! I'll give it a shot.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top