Results 1 to 2 of 2
  1. #1
    tmcrouse is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Apr 2009
    Posts
    169

    ComboBox writing to text

    I have a table and have created a form and when I do my combobox, anything that is in that first column depending on what someone chooses from drop down should display all the data in my text boxes. I have the code set up as follows:

    private sub skill_afterupdate()
    me.ques1 = me.ques1.column(0)
    me.ques2 = me.ques2.column(1)

    etc....

    there are a total of 21 columns in this table with skill being in column 1 and the questions in columns 2 through 21. There are 4 possible choices from the skill and when the drop down is chosen it will display whatever the questions are pertaining to that skill. When I try and get in my form view and choose a question I get this error:

    compile error: method or data member not found and it has .column highlighted. If I look further by clicking help it says the collection, object or user-defined type doesnt contain the referenced member. I am not sure what that means.

  2. #2
    tmcrouse is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Apr 2009
    Posts
    169
    I got it. I had to do the following:
    private sub skill_afterupdtae()
    me.ques1 = me.skill.column(1)
    me.ques2 = me.skill.column(2)

    etc.

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

Similar Threads

  1. Replies: 29
    Last Post: 08-16-2011, 05:52 PM
  2. Replies: 0
    Last Post: 08-24-2010, 06:38 PM
  3. Replies: 0
    Last Post: 12-16-2009, 01:14 PM
  4. Replies: 1
    Last Post: 03-18-2009, 12:30 AM
  5. Selecting text - ComboBox
    By Numbat in forum Programming
    Replies: 2
    Last Post: 06-05-2006, 05:42 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