Results 1 to 2 of 2
  1. #1
    russ0670 is offline Novice
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Posts
    21

    Automatically print to pdf and change the filename to a field value.

    I want to be able to in a form click a button which automatically creates a report converts it to .pdf and set the PDF file name to one of the field values and saves it in a specific location (k:/statements)



    E.G if field "accountno" in tblaccount is 45678 then the pdf would be called k:/statements/45678.pdf

    Table Name= tblaccount

    Form Name= frmaccount

    Report Name= rptstatement

    does anyone know the code to do this or a good forum posting to help (had a look on here and Google and could not find anything definitive)

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I use Stephan Lebans code for this operation. http://www.lebans.com/reporttopdf.htm

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 01-19-2010, 05:36 AM
  2. Automatically Reduce Field Size
    By Rebecca in forum Access
    Replies: 4
    Last Post: 01-06-2010, 10:14 PM
  3. Print files stored in an OLE field
    By Brad Harris in forum Programming
    Replies: 1
    Last Post: 12-28-2009, 07:33 PM
  4. Change the value of a field
    By akhilash in forum Queries
    Replies: 0
    Last Post: 07-16-2009, 07:20 AM
  5. Print memo field
    By Mike McNally in forum Reports
    Replies: 0
    Last Post: 09-22-2008, 05:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums