Combo Box Value

G

Guest

How do you make a combobox reflect the value of more than one field when
using it to select records? Example, I have the following code for selecting
a record, and once the record is selected the combobox only show the rank of
the individual selected. I would like the combobox to show the rank, last
name, first name m.i. Is this possible?

Private Sub Combo79_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object

Set rs = Me.Recordset.Clone
rs.FindFirst "[PersonnelDataID] = " & Str(Nz(Me![Combo79], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
 

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