Results 1 to 4 of 4
  1. #1
    chelseagardens is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2013
    Posts
    3

    Exclamation AutoFill Based on ComboBox Selection

    Hopefully my title is accurate for what I'm attempting to do, but I created a form (ProductIssdF) with a combo box that includes a list of item descriptions from a table: ProductListT. What I would like to happen is that once an item description is chosen within the combo box, a product ID is automatically filled in from the information on ProductListT. I attempted to do this using dlookup. The following is the information I typed into the expression builder:

    =DLookUp("ProductID","ProductList","ItemDescriptio n='" & [Forms]![ProductsIssdF]![Combo54] & "'")



    Mind you, "combo54" is the combo box I created with the list of item descriptions. Now, when I go to form view and select something from the combo box nothing happens within the product ID text box! It's so frustrating! I am a very new user so I have no earthly idea what I have done wrong here. Any suggestions?

  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,521
    Does this help?

    BaldyWeb - Autofill
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    chelseagardens is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2013
    Posts
    3
    So I've tried your suggested method of getting what I want and it seems like it will get me my desired result, the issue is that I get the following message when I try to select something from the combo box:

    "Microsoft Access cannot find the object 'me' If 'me' is a new macro or macro group, make sure you have saved it and that you have typed its name correctly."

    Any thoughts on that?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I suspect you have it directly in the properties window. What I posted was VBA code, and goes here:

    http://www.baldyweb.com/FirstVBA.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 7
    Last Post: 10-31-2011, 02:21 PM
  2. Replies: 1
    Last Post: 09-06-2011, 01:47 PM
  3. Replies: 29
    Last Post: 08-16-2011, 05:52 PM
  4. Replies: 0
    Last Post: 08-24-2010, 06:38 PM
  5. Replies: 0
    Last Post: 12-16-2009, 01:14 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