Combobox

S

sogescom

I have a ComboBox that is populated with a database table.
My table as 2 primary keys (AccActivityID and AccNatureID).

How do i set the ValueMember of my ComboBox with the 2
primary keys together.

Thanks
 
L

Luke Zhang [MSFT]

You may unite the two fields in the SelectCommand, for example:

Select AccActivityID + "."+ AccNatureID as MyValueMember ....


Luke

(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

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