Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get selected value in combobox

Status
Not open for further replies.

darkradar

Programmer
Jul 20, 2002
78
US
I am having alot of problems with combobox.
In my form I am having a combobox for Credit card type.
It has 4 items, visa,MC, Amex and discover.
I had added these items to combobox through additem
property. when the form is loaded I should get the lat
record to be shown on the form.when the form is loaded I am getting all the fields on the form except the item in the combobox. I am having the same problem for move first
move next also.
Thanks in advance
 

A few questions for you.

Is the data that you are pulling from contain the same text as you have added to the combo box? Or is it a numeric representation, i.e. 0=MC, 1=Visa etc.?

If the underlying data is in text format then you could do something like...

[tt]Combo1.Text = Rs.Fields("FieldName")[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top