Results 1 to 7 of 7
  1. #1
    Jrw76 is offline Advanced Beginner
    Windows 7 64bit Access 2003
    Join Date
    Dec 2013
    Posts
    38

    Populating fields

    I have a table called Label Sizes. The fields are ID, Name, Size, Font.



    I have another table called Label Plate Data. In that table, the three fields listed above are all drop combo boxes in this one. What I want to do is, when the user is enters in the Name, I want Size and Font to populate automatically. What do I need to do?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    In a form you can do this:

    BaldyWeb - Autofill

    Don't think it's possible directly in a table, but I never let users see tables anyway.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    in your combo box put all four fields, make your column widths 0, 1, 0,0

    put two unbound controls (assuming the combo box shows the name already)

    let's assume for the sake of this example your combo box is named cbo_Test

    in the first unbound control put:

    =cbo_test.column(2)

    in the second put

    =cbo_test.column(3)

  4. #4
    Jrw76 is offline Advanced Beginner
    Windows 7 64bit Access 2003
    Join Date
    Dec 2013
    Posts
    38


    in your combo box put all four fields, make your column widths 0, 1, 0,0
    Not sure where you mean. This is a drop down menu because it is using the information from tblLabelSizes.

    put two unbound controls (assuming the combo box shows the name already)

    let's assume for the sake of this example your combo box is named cbo_Test
    The name is Size Code so... cbo_Size Code?
    in the first unbound control put:

    =cbo_test.column(2)
    Put this where?
    in the second put

    =cbo_test.column(3)



    Put this where?

  5. #5
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    You are using a lookup field in your table? I advise against doing this. To answer your question, if it is a lookup field you are referring to, the stored value will be the Primary Key to the other columns you defined in your lookup field. The ID represents Name, Size, Font. If you chose to store ID and display Name.

    Storing the ID virtually sores all four fields in a single lookup field.

  6. #6
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Also, NAME and SIZE are reserved words in Access and shouldn't be used as object names.
    http://allenbrowne.com/AppIssueBadWord.html

  7. #7
    Jrw76 is offline Advanced Beginner
    Windows 7 64bit Access 2003
    Join Date
    Dec 2013
    Posts
    38
    Quote Originally Posted by rpeare View Post
    in your combo box put all four fields, make your column widths 0, 1, 0,0

    put two unbound controls (assuming the combo box shows the name already)

    let's assume for the sake of this example your combo box is named cbo_Test

    in the first unbound control put:

    =cbo_test.column(2)

    in the second put

    =cbo_test.column(3)

    Ok, This works!!!! THANK YOU!!!

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

Similar Threads

  1. Pre Populating Form Fields
    By psuedo98 in forum Forms
    Replies: 3
    Last Post: 03-20-2012, 12:51 PM
  2. Populating fields
    By bjr001 in forum Forms
    Replies: 4
    Last Post: 10-11-2010, 10:19 AM
  3. Populating Fields
    By deiniolj in forum Forms
    Replies: 21
    Last Post: 12-08-2009, 10:51 AM
  4. Self Populating Fields
    By kellyd in forum Access
    Replies: 0
    Last Post: 09-17-2009, 10:20 AM
  5. Populating multiple fields
    By jjcaprio in forum Programming
    Replies: 11
    Last Post: 08-16-2009, 01:51 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