Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2014
    Posts
    2

    Getting parameters sent to a report via parametrised query

    I have a report based on a parametrised query asking for start and end dates.



    How can I use VBA to capture these to put them in Report title e.g. Sales for period 1/6/2014 - where italics are user data entered?Thanks.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    If you use the bracketed criteria method, no code required. You can have a textbox:

    ="Sales for period " & [Enter start date]

    the bracketed text must exactly match the criteria. The same method would work for criteria from a form.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Join Date
    Jul 2014
    Posts
    2

    Thank you

    Quote Originally Posted by pbaldy View Post
    If you use the bracketed criteria method, no code required. You can have a textbox:

    ="Sales for period " & [Enter start date]

    the bracketed text must exactly match the criteria. The same method would work for criteria from a form.
    This did the trick!

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Happy to help and welcome to the site by the way!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 3
    Last Post: 07-24-2013, 07:38 AM
  2. Replies: 1
    Last Post: 03-07-2012, 09:00 AM
  3. Report asking for parameters when printing
    By kris335 in forum Reports
    Replies: 3
    Last Post: 09-21-2011, 11:27 AM
  4. Replies: 0
    Last Post: 07-05-2010, 08:00 AM
  5. Report parameters
    By saylindara in forum Reports
    Replies: 15
    Last Post: 08-02-2009, 03:49 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