Results 1 to 4 of 4
  1. #1
    Idznak is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2013
    Posts
    2

    How to group people's titles by gender?

    I have a database with two tables. One for customers, one for the books that they buy.
    I have a field for people's titles (Mr, Mrs, Miss, Ms) and I'd like to make a graph in Excel to show the relationship between gender and amount spent on books.



    I'd like to just have two fields, male and female to put into Excel so the graph makes more sense than all four titles and then an explanation that Mrs, Miss and Ms must be added together to compare the total spent with the males.

    How can I do this?

    Thanks,
    Idznak.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    How about creating a calculated field in a query that uses an IIF() statement for Male/Female?
    ...NOT TESTED...
    IIF([Title] = "Mr" , "Male", "Female")

  3. #3
    Idznak is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2013
    Posts
    2
    Quote Originally Posted by RuralGuy View Post
    How about creating a calculated field in a query that uses an IIF() statement for Male/Female?
    ...NOT TESTED...
    IIF([Title] = "Mr" , "Male", "Female")
    Thanks a lot, RuralGuy, this worked perfectly

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Great! Glad we could help.

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

Similar Threads

  1. Getting ID's when I need titles
    By zero3ree in forum Access
    Replies: 1
    Last Post: 06-26-2012, 10:24 PM
  2. Tab Titles...
    By jlclark4 in forum Forms
    Replies: 3
    Last Post: 04-08-2011, 12:25 PM
  3. Sorting a questionnaire by gender
    By uchiha37 in forum Access
    Replies: 1
    Last Post: 10-07-2010, 07:37 AM
  4. Column Titles
    By chum in forum Reports
    Replies: 1
    Last Post: 01-20-2010, 01:01 PM
  5. Replies: 0
    Last Post: 12-28-2009, 12:14 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