thanhtruong > 18-05-16, 05:20 PM
ongke0711 > 19-05-16, 01:04 AM
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If (KeyCode = vbKeyF) And (Shift And acCtrlMask) > 0 Then
DoCmd.OpenForm "frmFind", acNormal
End If
End Sub
Private Sub txtTextSearch_Enter()
Dim strTextSearch As String, strSQL As String
If Not IsNull(Me.txttextSearch) Then
strTextSearch = "*" & Me.txttextSearch & "*"
Else
strTextSearch = "*"
End If
strSQL = "SELECT * FROM tblICD10 WHERE [diengiai] Like '" & strTextSearch & "'"
Forms("frmICD10").RecordSource = strSQL
Forms("frmICD10").Requery
End Sub
thanhtruong > 19-05-16, 11:21 AM
ongke0711 > 19-05-16, 01:25 PM
Private Sub Form_KeyPress(KeyAscii As Integer)
If KeyAscii = vbKeyEscape Then
DoCmd.Close acForm, "frmFind"
End If
End Sub