Re: Search last name and first name combo box
- From: "Song Su" <csitnnn@xxxxxxxxxxx>
- Date: Sat, 28 Jul 2007 17:39:09 -0700
Now I did [Last Name] & ", " & [First Name] in cboFind.
Now how to modify AfterUpdate event?
"smk23" <smk23@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:EE411172-2175-4D8A-ACFE-45DE667C5C64@xxxxxxxxxxxxxxxx
You need to define a field in your underlying query definition like
[LastName] & ", " & [FirstName] AS CompleteName and search on that field.
--
sam
"Song Su" wrote:
My continiuse form has 2 separate fields: Last Name and First Name. I
setup
a search combo box and I want user to type last name, (comma and space)
and
continue to type first name to search correct record. My code only search
Last Name. How to do that? Thanks.
Private Sub cboFind_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Last Name] = '" & Me![cboFind] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
.
- Follow-Ups:
- Re: Search last name and first name combo box
- From: Rick Brandt
- Re: Search last name and first name combo box
- References:
- Search last name and first name combo box
- From: Song Su
- Search last name and first name combo box
- Prev by Date: Re: Select starting field on append
- Next by Date: Re: Option group value in an unbound text box.
- Previous by thread: Search last name and first name combo box
- Next by thread: Re: Search last name and first name combo box
- Index(es):
Relevant Pages
|
Loading