Results 1 to 4 of 4
  1. #1
    School Boy Error is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Oct 2012
    Posts
    72

    Report Open as PDF - like the internet

    After the user has run the query form I have instructed the macro to open the report when the user enters the information and clicks ok - this is all working fine. What I would like to do is when the user clicks ok it comes up with a box like if I were downloading a pdf - e.g. open or save the pdf. It's a database that is going to be accessed over the LAN so I have no idea where people would like to save their pdfs, if they want to save them at all.

    Sorry if this has been covered, I haven't been able to find anything via Google to do what I want and only been using Access since Sunday!

    Thanks

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    What is your question? How do you determine where they want their PDF exported? If so you can have an text box on your form that generates the report that asks for the path they want to put the PDF (there are some fancy things you can do like open a dialog box to let them navigate there, but if you're a novice it might be difficult to get it working). If you're talking about HOW to do it There's a function in access 2007 and higher to handle outputting to a pdf (syntax below)

    Code:
    DoCmd.OutputTo acOutputReport,"ReportName",acFormatPDF,"D:\Access\Reportname.pdf"

  3. #3
    School Boy Error is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Oct 2012
    Posts
    72
    Thanks. Am I able to edit that statement so that it just opens ups as a pdf? I guess it would be saved in a temporary location. This way the user could save it, if they wanted or just look at the records and close it after they have the information they need. I was thinking like when I go to click on a pdf on a webpage it comes up with open, save etc. I click open, look at it and then can either close if I don't want it or I hit save as if I want to keep it. I was hoping to achieve something to similar to this.

  4. #4
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    Typically what I would do is have an option group that had options of 'preview report', 'send to printer', 'export to pdf', 'export to data to text file', 'export data to excel' etc as options and base what you do with your report or the data driving it on what the user selects. In essence it's the same thing but to do what you're asking for would require a lot more code likely involving a some custom toolbars etc to simulate what you see on a website.

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

Similar Threads

  1. VBA > Internet Explorer
    By Stokecpa in forum Programming
    Replies: 3
    Last Post: 08-06-2012, 01:10 AM
  2. access on the internet
    By tommy in forum Access
    Replies: 2
    Last Post: 06-28-2011, 09:35 AM
  3. Update data via Internet?
    By yes sir in forum Access
    Replies: 2
    Last Post: 10-04-2010, 02:54 PM
  4. Connect to DB via internet useing VB
    By the_others in forum Access
    Replies: 0
    Last Post: 07-04-2010, 01:31 AM
  5. Share a database over the Internet
    By edupi in forum Access
    Replies: 5
    Last Post: 04-13-2009, 08:14 PM

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