Results 1 to 5 of 5
  1. #1
    UTMonkey is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Jun 2011
    Posts
    2

    Crosstab(?) list of software installed

    Hi All,



    Hope you can help, I currently have a table with the following columns

    PC, Software Installed

    So the data in the table may look like this.

    Code:
     
    PC1, MS Access
    PC2, MS Access
    PC2, Excel
    PC3, MS Access
    PC2, Outlook
    PC3, Ladyboys of Bangkok screen saver.
    PC3, Outlook
    I would like to be able to do the following, first -

    Produce a query which looks like the following

    Code:
     
                                                      PC1     PC2       PC3
    Excel                                                     [tick]
    Outlook                                                   [tick]   [tick]
    Ladyboys of Bangkok screen saver                          [tick]
    MS Access                                        [tick]   [tick]   [tick]
    And then, which would be really cool for the query to sort by the software that installed on the most PC's - see below

    Code:
     
                                                      PC1     PC2       PC3
    MS Access                                        [tick]   [tick]   [tick]
    Outlook                                                   [tick]   [tick]
    Excel                                                     [tick]
    Ladyboys of Bangkok screen saver                          [tick]
    The best I can do with Crosstab is to generate data with the PC names and the software for the rows - no problem, but the problem is a) how to change the data in the crosstab to a "tick" and b) how to sort by most popular software.

    Hope you can help, thanks in advance.

    Regards

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    wow, what's with the cross posts today! This is like #9 I've seen. ridiculous... Hey Matrix, where are you when we need you!?

    I don't think you can get your TICKS with any query in Access. Sorry. I'm always wrong though, so that may not have any value.

    I'd evaluate the reason why you're doing it. Just to be cool? Or cuz it's required?

  3. #3
    UTMonkey is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Jun 2011
    Posts
    2
    Sorry, desperate times.

    Ok, forget the ticks - how about a yes/no?

    Mark

    p.s. it's required.....

  4. #4
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Mark,

    you CAN'T change a field type in a query. You simply cannot do it. you can change a DATA type, but you can't change a field type.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,928
    What is 'tick'? The crosstab can give you a count of each software under each PC. This is not what you need?

    Okay, I get it, each pc should have have only one copy of any software so should total 1 or 0. The crosstab will do that.

    The crosstab can include a column that adds the other columns. Can't sort on this aggregate calc column but can build another query that uses the crosstab and sort on the column.

    Can have expressions in the second query or in textboxes on form or report display whatever you want for the 0 and 1 values:
    Comp1: IIf(PC1=0,Null,"tick")
    Last edited by June7; 06-26-2011 at 06:21 PM.
    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. Replies: 0
    Last Post: 01-27-2011, 04:03 AM
  2. Access Installed? How to check it online.
    By Thopaga in forum Access
    Replies: 2
    Last Post: 12-09-2010, 02:24 PM
  3. .msi Package installed files
    By ManvinderKaur in forum Access
    Replies: 1
    Last Post: 08-22-2010, 12:43 PM
  4. oledb not installed?
    By bbxrider in forum Access
    Replies: 0
    Last Post: 04-20-2010, 01:36 PM
  5. ETL software and training
    By Hcasty in forum Access
    Replies: 1
    Last Post: 08-27-2009, 07:21 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