transfer a ComboBox column value to a textbox after update

A

Andre Beier

Hi,

I have a ComboBox with 4 columns. The data comes from a recordset.
When the user changes the selected item of the Combobox, I want to put the
value
of the last column into a regular Text Box.

When I use
-------------------------------------------------
Me.TextBox.Value = Me.ComboBox.Value
-------------------------------------------------
I get the unique ID of the record.


I also tried
-------------------------------------------------
Me.TextBox.Value = Me.ComboBox.Itemdata(3)
-------------------------------------------------
but it did not work.

Thanks in advance

Andre
 
P

Peter Hoyle

Try

Me.TextBox= Me.ComboBox.Column(3)

The index is zero based so Column(3) actually gets the 4th column,

Cheers,
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top