Results 1 to 7 of 7
  1. #1
    Marisha is offline Novice
    Windows Vista Access 2007
    Join Date
    Oct 2011
    Posts
    4

    Lookup Wizard Question


    Hello!
    I am trying to set up a lookup between two tables using the lookup wizard. The parent table has roles such as "manager", "assistant", etc. and the child table has employee records.
    In the child table I want to be able to add a new employee and then have a drop down list linked to the parent table from which I can choose his role. But once I go through the wizard, the data type for the role column in the child table changes from "text" to "number".
    If you have any advice on why this is happening and how I can fix this issue, I would really appreciate it. Thank you!

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    I feel you have your terms of Parent/Child reversed - - but that aside - - your lookup is binding to key field probably. Which it is suppose to.

    What you can do - is delete that look up field temporarily. Go to the table that holds these roles - and eliminate the key field - so that this is a single column table.

    Now go back to your employee table and create a look up table - - now because the role table only has 1 column which is text - it will bind to it....

    Hope this helps.

  3. #3
    Marisha is offline Novice
    Windows Vista Access 2007
    Join Date
    Oct 2011
    Posts
    4
    Hi NTC,
    That solved the problem, thank you so much for your advice!!
    As for the terms, I thought the employee table was the "child" because it pulled data from the roles table. Is this incorrect? Thanks for clarifying!

  4. #4
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    the classical use of Parent/Child does not apply to your situation. In your case you are using a look up table or sometimes called list - because it is essentially static. The 2 letter state initial is a good example of a list table which sole purpose is to be a lookup source.

    Parent/Child generally refers to active tables that are 1:Many with a cross referencing key field.

    None of this terminology is set in stone but this is the most common view I believe.

    Happy to help.

  5. #5
    Marisha is offline Novice
    Windows Vista Access 2007
    Join Date
    Oct 2011
    Posts
    4
    That's good to know, thank you so much for all your help!

  6. #6
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    By the way you should NOT be using lookups at TABLE LEVEL if you are doing so. You should be using them at FORM level and NOT directly in the tables.

    See here for more about why:
    http://www.mvps.org/access/lookupfields.htm

  7. #7
    Marisha is offline Novice
    Windows Vista Access 2007
    Join Date
    Oct 2011
    Posts
    4
    That's a good point. Thanks, Bob!

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

Similar Threads

  1. Lookup Wizard Problem
    By Boltman in forum Access
    Replies: 2
    Last Post: 07-31-2011, 10:06 PM
  2. Lookup wizard
    By VLI in forum Forms
    Replies: 7
    Last Post: 01-28-2011, 09:25 AM
  3. Lookup Wizard and Multivalued columns
    By haygun in forum Access
    Replies: 0
    Last Post: 01-27-2010, 11:04 AM
  4. Using tbale field in Lookup Wizard
    By dotancohen in forum Database Design
    Replies: 5
    Last Post: 12-10-2009, 02:54 AM
  5. Query Wizard question
    By kcjkwm in forum Queries
    Replies: 2
    Last Post: 11-09-2009, 07:20 PM

Tags for this Thread

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