smtazulislam
Member
- Local time
- Tomorrow, 01:57
- Joined
- Mar 27, 2020
- Messages
- 808
This is SearchBox
it's work properly. but I have a Combobox as cboStatus and have 7 row data.
1. Active
2. Vacation
3. , 4, 5, 6, 7 etc.
I want to do...
* txtSearchBox search Active and Vacation Only and others data 3,4,5,6,7 is ignored.
* If dont matched data give message "Enter Employee ID Data not Match", If matched just display data record.
Code:
Private Sub txtSearchBox_AfterUpdate()
If Me.txtSearchBox = 0 Then
DoCmd.GoToRecord acForm, Me.Name, acNewRec
Else
With Me.RecordsetClone
.FindFirst "EmployeeID = " & Nz(Me.txtSearchBox, 0)
If Not .NoMatch Then
Me.Bookmark = .Bookmark
End If
End With
End If
End Sub
1. Active
2. Vacation
3. , 4, 5, 6, 7 etc.
I want to do...
* txtSearchBox search Active and Vacation Only and others data 3,4,5,6,7 is ignored.
* If dont matched data give message "Enter Employee ID Data not Match", If matched just display data record.
Last edited: