Results 1 to 4 of 4
  1. #1
    Russellh is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    Apr 2014
    Posts
    68

    How to show User Input as part of the report title


    Hi,
    So I use the >[Enter a Beginning Date] and < [Enter an End Date] to allow the user to enter the range they want to query for.
    I would like to add this input to the report header. That way it will show what range the report is for once it is printed.

    How would I do that?

  2. #2
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Most apps have either a popup date form when the Report is opened or a date criteria form. Anyway, here is an example of the Report format.

    ="Job Details Report for the Time Period Between " & [Forms]![frmJobs]![StartDate] & " And " & [Forms]![frmJobs]![EndDate]
    HTH

  3. #3
    Russellh is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    Apr 2014
    Posts
    68
    This is just a query and a report created from the query. One column is say 'Bill Date'. in the design view under that column i enter >[enter start date] and ....
    When the query or report is ran it pops up "enter start date" and after input it asks for end date. I'm not sure where it stores the input so that I can retrieve it.

    I did not follow your code in the sense that where do the variables startdate and enddate come from?

  4. #4
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    The date criteria would come from in your case the query. Your Text Box on the Report would use this criteria as it's Control Source.
    Attached Thumbnails Attached Thumbnails qyrpic.png  
    Last edited by burrina; 08-04-2014 at 10:05 PM. Reason: qry Pic

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

Similar Threads

  1. Replies: 2
    Last Post: 07-01-2014, 10:48 AM
  2. Replies: 6
    Last Post: 09-01-2013, 08:17 PM
  3. Replies: 3
    Last Post: 03-11-2013, 05:11 PM
  4. Replies: 2
    Last Post: 04-28-2011, 07:30 PM
  5. Replies: 0
    Last Post: 01-18-2007, 07:07 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