hi, i make a form, where i can see all the models i have on my database, so i can pick the one i need!!but i want to make a filter
i have several textbox so i can choose, what do i wan to make the filter i use a code, and make the filter but i cant use multiples filter, this make me use only one filter at timei use this code
what can i do, to amek a multiple filter?????'
thanks, and sorry for my english!!
i have several textbox so i can choose, what do i wan to make the filter i use a code, and make the filter but i cant use multiples filter, this make me use only one filter at timei use this code
Option Compare Database
Private Sub buscarnombre_AfterUpdate()
DoCmd.ApplyFilter "", "[Nombre] Like '" & Me.buscarnombre & "*'"
End Sub
Private Sub buscarnombre_Change()
On Error GoTo Err_Comando12_Click
DoCmd.ApplyFilter "", "[Nombre] Like '" & Me.buscarnombre & "*"
buscarnombre.SetFocus
buscarnombre.SelStart = Len(buscarnombre)
Exit_Comando12_Click:
Exit Sub
Err_Comando12_Click:
Resume Exit_Comando12_Click
End Sub
Private Sub buscarso_AfterUpdate()
DoCmd.ApplyFilter "", "[SO] Like '" & Me.buscarso & "*'"
End Sub
Private Sub buscarso_Change()
On Error GoTo Err_Comando12_Click
DoCmd.ApplyFilter "", "[SO] Like '" & Me.buscarso & "*"
buscarso.SetFocus
buscarso.SelStart = Len(buscarso)
Exit_Comando12_Click:
Exit Sub
Err_Comando12_Click:
Resume Exit_Comando12_Click
End Sub
Private Sub buscarsp_AfterUpdate()
DoCmd.ApplyFilter "", "[servpack] Like '" & Me.buscarsp & "*'"
End Sub
Private Sub buscarsp_Change()
On Error GoTo Err_Comando12_Click
DoCmd.ApplyFilter "", "[Servpack] Like '" & Me.buscarsp & "*"
buscarsp.SetFocus
buscarsp.SelStart = Len(buscarsp)
Exit_Comando12_Click:
Exit Sub
Err_Comando12_Click:
Resume Exit_Comando12_Click
End Sub
Private Sub Form_Current()
Me.Refresh
End Sub
Private Sub Form_Open(Cancel As Integer)
Me.Refresh
End Sub
what can i do, to amek a multiple filter?????'
thanks, and sorry for my english!!
Attachments
Last edited: