Only What is Chosen

C

Charles Phillips

Hello,
I am using MS-Access 2003.
I have created (copied) a process, that allows me to choose the User I want.
The Combo Box, allows me to type the letters of the last name of the User
whose data I work with.
The Combo Box gives a listing of ALL of the 1st letter of the last name of
the User.
Ex: S, displays S-Sz, then every letter after S.
I just want to see S-Sz, or C-Cz.
Can someone point me to some examples???
I have included my code below:

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

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

Thank you,


Charles L. Phillips
 
C

Charles Phillips

Hello,
"Thank You"...


Charles L. Phillips



KARL DEWEY said:
No code needed.

Set the Auto Expand property of the combo box to Yes.

--
KARL DEWEY
Build a little - Test a little


Charles Phillips said:
Hello,
I am using MS-Access 2003.
I have created (copied) a process, that allows me to choose the User I
want.
The Combo Box, allows me to type the letters of the last name of the User
whose data I work with.
The Combo Box gives a listing of ALL of the 1st letter of the last name
of
the User.
Ex: S, displays S-Sz, then every letter after S.
I just want to see S-Sz, or C-Cz.
Can someone point me to some examples???
I have included my code below:

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

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

Thank you,


Charles L. Phillips
 

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

Similar Threads

Search combo box 2
RunTime Error 3070 8
Textbox Filter 4
Access MS Access 2003 - Method or data member not found 0
recordset.clone 13
Recordset Clone using Autonumber 3
Error 2147352567 2
Add if not in combo box 10

Top