Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
  1. #16
    Dan Lee is offline Advanced Beginner
    Windows 10 Access 2002
    Join Date
    Jan 2017
    Posts
    57
    I am able to retrieve old reports using the Parameter Query, but the Date bar shows the current date. Here is the code for the Date bar. I want the date that was input into the Parameter Query.




    Code:
    =[Forms]![main].[ubRptDate]

  2. #17
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    If you used brackets for the parameter, you can do this:

    =[Exact text of your parameter here]
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #18
    Dan Lee is offline Advanced Beginner
    Windows 10 Access 2002
    Join Date
    Jan 2017
    Posts
    57
    Quote Originally Posted by pbaldy View Post
    If you used brackets for the parameter, you can do this:

    =[Exact text of your parameter here]
    OK, that worked.

    Thanks

  4. #19
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    No problem.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #20
    Dan Lee is offline Advanced Beginner
    Windows 10 Access 2002
    Join Date
    Jan 2017
    Posts
    57
    Dan Lee;354354]I found out how to go back to previous report dates. I used a Parameter Query in the Total Vote Query, so it found the report for that date in question, instead of the current date. This will help, but I really want a PDF generated for each report. I need to update my copy of Access.
    I read something about Changing my default Printer to Adobe, and printing to PDF Writer. Is that a possibility with Access 2002?

    My code might look like this:
    Code:
     Change Printer Adobe
    
    DoCmd.Print_Output "rptVoteSummary" acViewNormal
    
    Restore default printer

  6. #21
    jwhite is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Dec 2012
    Location
    North Carolina
    Posts
    349
    Check out this utility by Allen Browne: http://www.allenbrowne.com/AppPrintMgt.html

    It has a combo box for the user to select a printer. You can probably look at the code and figure out how to set it directly with code in the fashion you showed above.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Newly created report is lost
    By Skydiver16 in forum Reports
    Replies: 2
    Last Post: 02-16-2017, 03:36 PM
  2. So Lost!!
    By pshoestir in forum Programming
    Replies: 6
    Last Post: 08-29-2015, 10:40 PM
  3. lost table
    By J Foley in forum Access
    Replies: 1
    Last Post: 12-22-2014, 04:23 AM
  4. i have lost everything!!!
    By ariansman in forum Access
    Replies: 3
    Last Post: 08-24-2014, 12:18 AM
  5. Lost report formatting
    By kiltedcueball in forum Database Design
    Replies: 2
    Last Post: 06-23-2009, 12:28 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