Results 1 to 2 of 2
  1. #1
    Bill1974 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2015
    Posts
    1

    Populating a field based on the selection in another field


    I am new to access, and tried looking around to figure out how to do what I looking to do but don't know enough about programing to understand what I really need to do.

    I have a table with multiple fields, and i have a form where i update and create new records.

    One field in the form I would like to auto populate based on the selection in another field.

    The field I select is a product family field (home, car, boat, etc)

    The field that I want to auto populate has case number in the format of a two digits a dash and then three or four digits (a1-123, 55-8547, etc)

    I would like the case number field to auto populate in my form after I select the the product family class.

    The case number field the first two digits correspond to the product family class and I have a separate table with them.

    I understand that I have to lookup the two digit code and then look in my database to see what the last value is and add one to it.
    I just don't know how to go about doing it. macro, query, expression builder, etc. I am sure this has been done a million times and i will smake my head once i see how it should be done.

    My programs skill are poor at best.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    Sounds like creating a custom unique identifier. This is a common topic in forum. Here is one https://www.accessforums.net/forms/a...ing-23329.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.

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

Similar Threads

  1. populating field in form based on input field
    By BrandonFinn in forum Forms
    Replies: 7
    Last Post: 10-30-2014, 10:45 AM
  2. Replies: 4
    Last Post: 01-23-2014, 04:34 PM
  3. Populating one field based on another
    By thedanch in forum Access
    Replies: 1
    Last Post: 06-11-2012, 11:13 AM
  4. Replies: 10
    Last Post: 11-21-2011, 02:56 AM
  5. Replies: 3
    Last Post: 07-14-2011, 05:33 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