R
RowdyE
I have a Combo Box to select specific records in a table. The Box list a
persons LastName, FirstName, MI. I have been able to set the box up to select
a record based on a persons Last Name. However, if there is more than one
person with the same last name, it will always select the first record. I can
not find a way to make it select the specific record based on the persons
full name. Here's the code as I have it now.
Private Sub FindMember_AfterUpdate()
DoCmd.ShowAllRecords
Me!LastName.SetFocus
DoCmd.FindRecord Me!FindMember
'Set value of combo box equal to an empty string
Me!FindMember.Value = ""
End Sub
Each part of the name is listed in a seperate field. They are [FirstName]
[MI] [LastName].
I have tried many different thing to get this to work, but I can not select
a specific record if there is more than one persons with the same last name.
Any suggestions?
persons LastName, FirstName, MI. I have been able to set the box up to select
a record based on a persons Last Name. However, if there is more than one
person with the same last name, it will always select the first record. I can
not find a way to make it select the specific record based on the persons
full name. Here's the code as I have it now.
Private Sub FindMember_AfterUpdate()
DoCmd.ShowAllRecords
Me!LastName.SetFocus
DoCmd.FindRecord Me!FindMember
'Set value of combo box equal to an empty string
Me!FindMember.Value = ""
End Sub
Each part of the name is listed in a seperate field. They are [FirstName]
[MI] [LastName].
I have tried many different thing to get this to work, but I can not select
a specific record if there is more than one persons with the same last name.
Any suggestions?