I have a case statement that evaluates a string in a combo box on a form which is either English or Metric. What I'm finding is that the case statement does not see the pull down box contents which is loaded by default unless it is physically reselected by the user. In other words the combo box defaults to "metric" but the case statement does not recognize it unless I go and reselect "metric" in the combo box. Any help would be appreciated.
MJV 0 Junior Poster in Training
Recommended Answers
Jump to Post— LizR 171Whats wrong with the other question you already have a thread on this subject for?
Jump to Post— Clawsy 1i don't understand very well your problem. Give us the code, example... don't let us guess.
Jump to Post— bcasp 13If this is the problem I think it is, I usually fix it by using the Text property of the combo box. It should allow you to get the text of what's in the combo box without the user actually having to select it.
Jump to Post— bcasp 13OK...have you tried using the SelectedItem property?
All 13 Replies
LizR 171 Posting Virtuoso
MJV 0 Junior Poster in Training
Clawsy 1 Posting Whiz in Training
bcasp 13 Light Poster
MJV 0 Junior Poster in Training
bcasp 13 Light Poster
MJV 0 Junior Poster in Training
LizR 171 Posting Virtuoso
MJV 0 Junior Poster in Training
LizR 171 Posting Virtuoso
MJV 0 Junior Poster in Training
LizR 171 Posting Virtuoso
bcasp 13 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.