Results 1 to 6 of 6
  1. #1
    jokeboy1 is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Dec 2014
    Posts
    6

    Pass Parameters from Cross Tab Query to Report


    I created a report based on a cross tab query with parameters. When I run the report, I'm prompted to enter the parameters multiple times. Is there a way to define the parameters in the cross tab query to eliminate the multiple prompts?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Do your parameters reference input controls on a form?

    Review http://allenbrowne.com/ser-67.html#Param
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    jokeboy1 is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Dec 2014
    Posts
    6
    No. The parameters are just date criteria for the query.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Post the SQL statement of the CROSSTAB or provide db for analysis.

    Did the info in the link help?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    jokeboy1 is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Dec 2014
    Posts
    6
    Unfortunately, the info in the link was not really helpful because I'd already defined the parameters. The crosstab SQL is below. Thanks!


    PARAMETERS [Enter Month Starting Date] DateTime, [Enter Month Ending Date] DateTime;
    TRANSFORM Count(dbo_RecoveryCase.[File ID]) AS [CountOfFile ID]
    SELECT dbo_RecoveryCase.[Recomended Closing Reason], Count(dbo_RecoveryCase.[File ID]) AS [TotalOfFile ID]
    FROM dbo_RecoveryCase
    WHERE (((dbo_RecoveryCase.Department)="Investigations") AND ((dbo_RecoveryCase.[Closed Date]) Between [Enter Month Starting Date] And [Enter Month Ending Date]))
    GROUP BY dbo_RecoveryCase.[Recomended Closing Reason]
    PIVOT dbo_RecoveryCase.[Team Lead];

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    The parameters are set to be popups. Better to use a form for input and parameters reference controls on form. That should eliminate the repetitive popup prompts.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Pass Parameters to Access Query from VB.net
    By kbsudhir in forum Access
    Replies: 1
    Last Post: 11-20-2013, 03:07 PM
  2. Pass parameters
    By BFlat in forum Queries
    Replies: 15
    Last Post: 04-03-2012, 07:27 AM
  3. Replies: 1
    Last Post: 03-07-2012, 09:00 AM
  4. Pass parameters to a query from a form
    By zipmaster07 in forum Queries
    Replies: 1
    Last Post: 02-21-2012, 02:19 PM
  5. Replies: 8
    Last Post: 12-21-2011, 12:50 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