Results 1 to 5 of 5
  1. #1
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Selected From Combo Box Dropdown or Typed In? (a2k (9.0.6926) SP-3 Jet 4.0 SP-7)

    I have a form with combo box field that allows the user to open the combo box and select from the combo box or type in the field value without opening the combo box that may or maynot be in the combo box field.

    In the After Update Event of the combo box field how can I tell if the field value was selected from open combo box or typed in by the user without opening the combo box?

    The reason for this odd request is if the user selects a value from the open combo box, I want to run some code in the After Update Event, if user types in value which may or may not be in the combo box I don

  2. #2
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Selected From Combo Box Dropdown or Typed In? (a2k (9.0.6926) SP-3 Jet

    Don't you really mean that you want to run some code if the value is not in the list? I can't see any reason to run code if they selected from a list but not if they typed in an existing value also in the list. Could you explain what you're trying to accomplish with this?
    Charlotte

  3. #3
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Selected From Combo Box Dropdown or Typed In? (a2k (9.0.6926) SP-3 Jet

    I didn

  4. #4
    5 Star Lounger
    Join Date
    Oct 2001
    Location
    San Bernardino, California, USA
    Posts
    734
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Selected From Combo Box Dropdown or Typed In? (a2k (9.0.6926) SP-3 Jet

    John, just to clarify - you are saying that issue is not whether or not the entry is in the combobox list but rather if it was selected from the list or typed in - irrespective of whether or not it is in the list. Is this correct?

  5. #5
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Selected From Combo Box Dropdown or Typed In? (a2k (9.0.6926) SP-3 Jet

    I understood what you were asking, but I still don't see what the point is.

    I don't know of any simple way to tell whether or not the combobox was dropped down, since a combobox automatically matches a typed in item without dropping down the list if the AutoExpand is set to true. As soon as you select the value (AfterUpdate) or move off the control, the dropdown closes up anyhow. If the value is valid, why does it matter whether the combobox was dropped down or not? That just isn't logical. <img src=/S/shrug.gif border=0 alt=shrug width=39 height=15>
    Charlotte

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •