Results 1 to 5 of 5
  1. #1
    Gabriel2012 is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Nov 2012
    Posts
    31

    Lookup Column; storing information in another field

    Hello, I am dealing with two fields; "Error Category" and "Error ID". Each cooresponding error ID has a cooresponding error category (They are matched in up a sepearate table). In my errors table, I have created a lookup field in the "Error Category", which allows a used to select the error category from a drop down list. I would than like for the appropriate error ID to populate into the "Error ID" field based on the error category that is selected. How is this accomplished? Thank you

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Set the ControlSource property to the destination field.
    Set the BoundColumn property to the column with the Error ID.
    Review http://datapigtechnologies.com/flash...combobox3.html

    How long are category values? Might just save them instead of the ID. Less complication in queries.
    Review http://access.mvps.org/access/lookupfields.htm

    BTW, advise no spaces, special characters, punctuation (underscore is exception) in names.
    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.

  3. #3
    Gabriel2012 is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Nov 2012
    Posts
    31
    Thank you, that worked in allowing me to store the Error ID in the Error ID field, when selecting the category, however now that the Category field is bound to the error ID field the category description is no longer stored in the "Category Description" field. I need to select the category description from the field in the form, have the linked error ID stored into the Error ID field and have the category description stored in the category description field on the form.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    That sounds like duplication of data. If you have the Error ID saved why would you also save the category? Retrieve the category in query that joins the related tables.

    Unless I misunderstand what you are doing. Do you want cascading (dependent) comboboxes? Review http://datapigtechnologies.com/flash...combobox2.html
    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.

  5. #5
    Gabriel2012 is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Nov 2012
    Posts
    31
    Good point, this has solved my issue, thank you.

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

Similar Threads

  1. Replies: 5
    Last Post: 09-21-2012, 11:23 AM
  2. Replies: 1
    Last Post: 06-02-2011, 04:11 AM
  3. Storing information from combobox in table
    By michaelb in forum Forms
    Replies: 4
    Last Post: 05-04-2011, 09:42 AM
  4. Lookup column relating items in same field
    By rmroberts76 in forum Access
    Replies: 8
    Last Post: 06-05-2010, 07:41 PM
  5. Replies: 1
    Last Post: 07-06-2007, 08:27 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