Results 1 to 8 of 8
  1. #1
    teknic111 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Posts
    1

    How can I create a field in a table that's multiple choice?


    I am creating an employee database for a client. The employee table has a performance column for each employee, and my client wants to be able to choose from four performance codes – Excellent, Good, Average, and Poor. They want to choose these descriptions instead of typing them in each time. How can I make this happen?

    Thanks in advance!

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Consider 3 tables

    Employee (EmployeeID,EmpName,EmpDateOfBirth,EmpHireDate,...other Emp specific fields)

    PerformanceLookup(PerfId,PerfName)

    EmployeePerformance( EmpPerfID,EmployeeID_Fk,PerfId_Fk, PerfDate) <--green indicates these should be a Unique compound INdex)

    You should research Normalization and you should read
    http://forums.aspfree.com/attachment...2&d=1201055452

    Good luck with your project

  3. #3
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Create a table for perfomance called tblPerfomance With 2 fields. Name one of them PerfomanceID with Field Type AutoNumber. Name the other field Perfomance with Field Type Text.
    Create four records (Excellent, Good, Average, Poor).
    Create a new field in the Employee table called PerfomanceID with Field Type Number.
    Create a form bound to the Employee table. On this form, use the wizard to create a combo box based on the table tblPerfomance. Set the Control Source property of the combo box to PerfomanceID.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Bob,
    Are you suggesting an Employee only has 1 Performance Ranking? "The company" doesn't do performance reviews/appraisals of staff at different times?
    No history of an Employees performance with time?

    I mean, it's possible, but not too realistic.

  5. #5
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Orange,

    You are, of course, quite right. I just didn't give the OP's question as much thought as I should have.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726

  7. #7
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Quote Originally Posted by orange View Post
    It's hard to say what the OP was expecting -- but apparently he/she has a client.
    Yes, apparently so. I wish both of them well with their project.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  8. #8
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Why not put an options control on the input form with radio buttons that gives the user a choice and the result will then be input to the table.

    Alan

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

Similar Threads

  1. How to create multiple table relationships
    By robi212 in forum Access
    Replies: 1
    Last Post: 03-30-2012, 07:59 AM
  2. Create filter for multiple field search
    By luvsmel in forum Forms
    Replies: 5
    Last Post: 01-02-2012, 11:12 PM
  3. Replies: 11
    Last Post: 09-27-2011, 07:19 AM
  4. Create Multiple Charts from Single Table
    By Catch Wrestler in forum Reports
    Replies: 0
    Last Post: 06-17-2010, 08:33 AM
  5. Replies: 3
    Last Post: 06-01-2009, 01:41 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