"Mark" <(E-Mail Removed)> wrote in message
news:FB0916D4-F3E8-4F91-8076-(E-Mail Removed)...
> Hi
>
> I am fairly new to access and have just created a large database for work.
> The only way I have found to search the records is through a combo box. I
> am
> trying to browse people by surname. I have four people by the last name
> barry
> now if i select the 3rd record in the list it takes me to the first record
> everytime. Is there anyway to change this?
The combo box can't distinguish records that are identical in the displayed
column. So you need to make that column not have any identical values. Set
the combo box's RowSource to a query that creates a calculated field
including last name, first name, and (if desired) middle initial. For
example,
SELECT ID, LastName & (", "+FirstName) As FullName
FROM Contacts
ORDER BY LastName, FirstName
> Also I would like the drop down box to appear when you type like in
> facebook
> and not once I have clicked the arrow is this possible.
I'm not sure what you mean, not being a FaceBook user, but you can make the
combo box drop down when it gets the focus, using code for its GotFocus
event. For example,
Private Sub cboYourComboName_GotFocus()
Me.cboYourComboName.DropDown
End Sub
--
Dirk Goldgar, MS Access MVP
Access tips:
www.datagnostics.com/tips.html
(please reply to the newsgroup)