Results 1 to 8 of 8
  1. #1
    survivo01 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    71

    Unhappy Autofill combo value

    I guess I am really missing the boat.
    I have a table called classes. This table has classname and classtype.
    I am trying to insert date in another table called enrolled based on information from the table classes.


    I have made a combo box that inserts the classname and then I have a field next to it that needs the class type. I want the field class type to insert based on what is in classname automatically. I looked on the forum and thought this was the answer.
    Private Sub Combo251_AfterUpdate()
    Me.Combo232 = Me.Combo251.column2
    End Sub
    I used the above in my combo box classname using after update

  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,523
    You're close, but missed the syntax a bit:

    BaldyWeb - Autofill

    By the way, I changed your thread title to have more meaning to future users.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    survivo01 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    71
    I must be doing something wrong I get error message stating "The object doesn't contain the Automation object 'me.'"

  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,523
    Where do you have it? It should be in the VBA editor, not directly in the properties window.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    survivo01 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    71
    Not sure I know what you mean. When I go to the property sheet for my combo field ClassName I am clcking on after update and then selecting event procedure it gives me three options I have been picking code and placing the Me.classtype=Me.Classname.column.(1) I then close the code page.

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,523
    That sounds right. There's no period before the column number, so try

    Me.classtype=Me.Classname.column(1)

    If that doesn't work, can you post the db here?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  7. #7
    survivo01 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    71
    Thank you. how do I mark this solved.

  8. #8
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,523
    Happy to help. You can mark it solved in Thread Tools in the green bar just above your first post.
    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. Combo Cascade with a twist on autofill
    By Huddle in forum Access
    Replies: 1
    Last Post: 02-29-2012, 10:18 PM
  2. Replies: 1
    Last Post: 11-22-2011, 02:36 PM
  3. Autofill ?
    By Daryl2106 in forum Access
    Replies: 14
    Last Post: 10-28-2011, 10:09 AM
  4. Autofill
    By evosheas in forum Access
    Replies: 4
    Last Post: 09-20-2011, 02:29 PM
  5. Autofill
    By kdcooper88 in forum Access
    Replies: 1
    Last Post: 09-18-2010, 05:52 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