Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub Button_Click()
Dim strSQL As String
strSQL = "SELECT [blue]MyFields[/blue] " & _
"FROM [blue]MyTable[/blue] " & _
"WHERE [blue]MyField1 = '" & txtTextBox1 "'"
Dim Query1 As QueryDef
Set Query1 = CurrentDb.CreateQueryDef("QueryName", strSQL)
DoCmd.OpenQuery Query1.Name, acViewNormal, acReadOnly
End Sub
strSQL = "SELECT Patient_number" & _
"FROM Patient" & _
"WHERE Patient_number='" & Combo25 "'"
strSQL = "SELECT Patient_number " & _
"FROM Patient " & _
"WHERE Patient_number = '" & Combo25 "'"