Results 1 to 2 of 2
  1. #1
    navensg is offline Novice
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    5

    Post Need a help on Cross Tab type Situation

    Hello all,



    I have a data in table like below.

    CE Name Cert A-01 Cert A-02 Cert A-04 Cert A-06 Cert A-07 GOES ON like this for another
    AABB Yes Yes Yes No Yes
    BBCC No Yes Yes No Yes
    CCTT No No Yes No Yes


    I want the data presented like below.
    Certificate Name: Count
    Cert A-01 120 (Count of Yes)
    Cert A-02 120 (Count of Yes)
    Cert A-03 160 (Count of Yes)
    Cert A-04 58 (Count of Yes)
    Cert A-05 130 (Count of Yes)
    Cert A-01 170 (Count of Yes)
    and Goes on....

    What i have done so far. I have created query where using Iif formula, like if yes = 1 No = 0. From that query I grouped the data and now i am getting the count of Certificates. which looks like this.

    Cert A-01 Cert A-02 Cert A-04 Cert A-06 Cert A-07 GOES ON like this for another 120........
    120 120 160 58 130



    But i how get this in horizontal way like i told before.

    Please help me out guys...Thanks in advance.

    Ng

  2. #2
    kennejd is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    188
    I want the data presented like below.
    Certificate Name: Count

    Cert A-01 120 (Count of Yes)
    Cert A-02 120 (Count of Yes)
    Cert A-03 160 (Count of Yes)
    Cert A-04 58 (Count of Yes)
    Cert A-05 130 (Count of Yes)
    Cert A-01 170 (Count of Yes)
    and Goes on....

    You would have to write a union query....select CertA1, countOfYes from table where... union all select CertA2, countOfYes from table where... and goes on.

    This is a good example of what happens when a database is not normalized...you get to jump through some hoops.

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

Similar Threads

  1. Replies: 1
    Last Post: 03-11-2011, 11:03 AM
  2. Cross tab help
    By A S MANN in forum Queries
    Replies: 5
    Last Post: 10-28-2010, 07:46 AM
  3. Export / Import situation
    By svcghost in forum Import/Export Data
    Replies: 7
    Last Post: 10-14-2010, 04:23 PM
  4. Replies: 2
    Last Post: 03-18-2010, 08:24 PM
  5. Simple access situation
    By Xi0N in forum Access
    Replies: 1
    Last Post: 08-10-2009, 07:04 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