Results 1 to 4 of 4
  1. #1
    Amen is offline Novice
    Windows 7 32bit Access 2002
    Join Date
    Sep 2013
    Posts
    19

    Combo box vs text box

    i have something like this.the response(value) are my combo box



    4: ID response txtbox1 textbox2 textbox3
    1 jug

    2 plate

    3 cup

    4 spoon

    the text box is the one i should enter a value.if i select Cup from my drop down list..i should skip the next step and move on to step 6 since I'm in step 4 now..my step 5 should turn invisible(combo box and text box)
    can someone share some lights here

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    I have no idea what you are trying to say. You can use the "AfterUpdate" event of your combobox to adjust the properties of various controls on your form.

    If me.ComboBoxName.Column(1) = "Cups" then

    Me.Step5.Visible = False

    End If

  3. #3
    Amen is offline Novice
    Windows 7 32bit Access 2002
    Join Date
    Sep 2013
    Posts
    19
    thanks

    i want to include 2 values eg If me.ComboBoxName.Column(1) = "Cups" and "spoon" then..

    when i add "spoon" use AND or OR i got an error..

    whats wrong with my code..

    thanks

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    ComboBoxes return only one row. You can choose which Column you want to retreive the value from. Example .Column(0) or .Column(1). You can retrieve the values of multiple columns too.

    strColumnZero = me.ComboBoxName.Column(0)
    strColumnOne = me.ComboBoxName.Column(1)

    After you make a selection with your combobox, the value of your combobox is equal to the item that is selected.
    Last edited by ItsMe; 10-22-2013 at 08:29 PM. Reason: Made some clarification changes

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

Similar Threads

  1. Combo to text
    By Smeagol in forum Access
    Replies: 2
    Last Post: 03-14-2013, 05:21 PM
  2. Replies: 2
    Last Post: 08-16-2012, 10:02 PM
  3. Replies: 3
    Last Post: 03-15-2012, 02:27 PM
  4. Replies: 4
    Last Post: 08-16-2011, 05:54 PM
  5. Combo box to text box
    By kc21supra in forum Access
    Replies: 4
    Last Post: 08-21-2009, 01:08 PM

Tags for this Thread

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