Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

search criteria based on other combox

Status
Not open for further replies.

NewStudent

Programmer
Nov 8, 2002
12
0
0
IR
Hi, everyone,

How to created combox depend on other combox? I already created one cobox that works for single search. I want to create another combox "cbxDOB" that depend on "cbxlname".

The following codes only works for single search "cbxlname". Finally, I need to get search for " lastname + DOB".

Private Sub cbxlname_AfterUpdate()
Dim strSQL As String
strSQL = "select * From hackney_log where lastname = '" & Me.cbxlname & "'"
Me.RecordSource = strSQL

Me.cbxpermit = Null
Me.Requery

End Sub

Many thanks.
Wendy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top