Results 1 to 2 of 2
  1. #1
    Rich P is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2011
    Posts
    6

    crosstab query (criteria does not work)

    I can create the crosstab query, put I cannot retrieve any data when I put in [enter date] in the criteria area (pick effective date). I read about putting that statement in the Query Parameters, tried that and it did not work. If I type 12/12/2010 it returns the data, but when I type in 01/01/2011, it returns the information for 12/12/2010. Here is the sql:



    TRANSFORM Count(tblMAIN.COUNT) AS CountOfCOUNT
    SELECT tblEmployee.BADGE, tblEmployee.NAME, tblMAIN.[PICK EFFECTIVE DATE]
    FROM tblEmployee INNER JOIN tblMAIN ON tblEmployee.BADGE = tblMAIN.BADGE
    GROUP BY tblEmployee.BADGE, tblEmployee.NAME, tblMAIN.[PICK EFFECTIVE DATE]
    ORDER BY tblEmployee.BADGE
    PIVOT tblMAIN.[CLASS WORKED];

  2. #2
    jzwp11 is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    What I would do is to create a query that does the filtering and then use that query as the record source for your cross tab.


    SELECT tblEmployee.BADGE, tblEmployee.NAME, tblMAIN.[PICK EFFECTIVE DATE]
    FROM tblEmployee INNER JOIN tblMAIN ON tblEmployee.BADGE = tblMAIN.BADGE
    WHERE tblMAIN.[PICK EFFECTIVE DATE] = [Enter Date]

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

Similar Threads

  1. crosstab query criteria
    By Sharron in forum Queries
    Replies: 3
    Last Post: 12-15-2011, 04:31 AM
  2. crosstab queries (criteria) won't work
    By Rich P in forum Queries
    Replies: 1
    Last Post: 02-15-2011, 10:53 AM
  3. crosstab query (criteria)
    By Rich P in forum Queries
    Replies: 1
    Last Post: 02-14-2011, 08:40 PM
  4. Replies: 6
    Last Post: 01-07-2011, 12:50 PM
  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