Results 1 to 2 of 2
  1. #1
    allstar45 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Feb 2012
    Posts
    35

    Get combo box selected text.

    Mkay, I've been working at this a while now.

    I have a combo box on a form, getting information from 1 field ("name") in 1 table ("tblReferences").

    in VBA I have a method on the click of a button that sets the focus to the combo box.

    What I am trying to figure out is how to take the text of the reference that has been selected, and store it in a variable "courseCode"




    Things I've tried:

    .Value property- which just returns a number and not the text it's self
    &
    SQL Querie ON the Value - I cant figure out how to run, and store the RESULT of the SQL as a string.


    Any tips, advice, examples, code, or tricks would be fantastic

    Thanks,
    -Patrick

  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
    Sounds like this:

    BaldyWeb - Autofill
    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. show text box if tick box is selected
    By zac123 in forum Access
    Replies: 16
    Last Post: 09-06-2015, 12:14 PM
  2. Clear selected value in combo box
    By bbrazeau in forum Programming
    Replies: 6
    Last Post: 08-05-2014, 12:38 AM
  3. Replies: 1
    Last Post: 01-19-2012, 11:59 AM
  4. Visible text boxes when combo box choice selected
    By nichmeg in forum Programming
    Replies: 3
    Last Post: 10-16-2011, 02:53 PM
  5. Replies: 1
    Last Post: 03-13-2010, 08:38 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