combo box search

P

patti

i have a combo box that is based on a query.
PrimaryKeyID, Lastname, Firstname.

I want the user to be able to search on the lastname but
i need the PrimaryKeyID stored.

thanks for the help.

patti
 
B

Barry Gilbert

Set the Bound column property of the combobox to 1. This makes the
PrimaryKeyId the value that will be stored in the table. In the ColumnWidths
property, put:
0"; 1"; 1"

This make the PrimaryKeyId hidden and allows the users to enter/search by
LastName.

Barry
 

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