Results 1 to 2 of 2
  1. #1
    gpierce9 is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Location
    NJ
    Posts
    19

    Qry Criteria has problems in my crosstab qry.

    1 - Idea1: I am doing a crosstab qry. The following works in all my other type of qry but not this crosstab.
    I have below in the 1st Qry that collects the data. It works fine and collects the proper REPID.

    [forms]![frm8100Finance]![cboRepID]

    In the 2nd Qry, the crosstab, I include the REPID as a row heading.
    It bombs out saying:
    MS database engine does not recognize '[forms]![frm8100Finance]![cboRepID]' as a valid field name or expression.

    2 - Idea2: So I went back to Qry1 and instead tried using a criteria of [enter RepID].
    But the Qry2 crosstab still barked the same bad answer.

    3 - Idea3: Instead, I hardcoded 36 onto the Qry1 RepID criteria row.
    The Qry2 crosstab works fine. It accepted the hardcoded 36.



    4 - How could I get the idea#1 to work using the [forms]![frm8100Finance]![cboRepID] ??
    Maybe I need a formatting deal so that Qry2 recognizes it as a number answer?

    thank you. Glen

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Perhaps use PARAMETERS - 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.

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

Similar Threads

  1. crosstab problems
    By rwsolutiondesign in forum Queries
    Replies: 5
    Last Post: 06-01-2017, 09:49 PM
  2. Replies: 7
    Last Post: 09-03-2015, 11:31 AM
  3. crosstab query criteria
    By Sharron in forum Queries
    Replies: 3
    Last Post: 12-15-2011, 04:31 AM
  4. Crosstab Criteria or Parameters
    By lukewarmbeer in forum Access
    Replies: 3
    Last Post: 08-11-2010, 09:57 AM
  5. Criteria in Crosstab Query
    By wasim_sono in forum Queries
    Replies: 1
    Last Post: 12-12-2006, 05:14 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