Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Jan 2001
    Location
    Victoria, BC
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Putting query prompt on Report (2003)

    My query prompts for days from today to fetch records from a helpdesk tickets database. I wish to put in the report the number of days that the user requested in the prompt and need help specifying this (nameless?) variable.

  2. #2
    New Lounger
    Join Date
    Jan 2001
    Location
    Victoria, BC
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Putting query prompt on Report (2003)

    In my haste I asked a wrong question -- How do I get this no. of days entered to display on the report?

  3. #3
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Putting query prompt on Report (2003)

    Your query has a parameter of the form

    [Enter number of days]

    You can use the same expression in the Control Source property of a text box on your report:

    =[Enter number of days]

    or, if you want to incorporate it into some text:

    ="Report for " & [Enter number of days] & " days"

    You must use exactly the same text between the square brackets [ ] as in the parameter prompt.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •