Not sure where to place LIKE operator in the statement below
I tried where (like (tblPatientDemo.LastName= forms!frmPatientLookup!txtLastName)
But I received a syntax errors
Basically the user has to enter the full name of the patient, I want them to be able to enter first couple letter of the patient name..
What am I doing wrong??
Code:
SELECT tblPatientDemo.LastName, tblPatientDemo.FirstName, tblPatientDemo.DOB, tblPatientDemo.Gender
FROM tblPatientDemo ( where (tblPatientDemo.LastName= forms!frmPatientLookup!txtLastName or forms!frmPatientLookup!txtLastName is Null)
I tried where (like (tblPatientDemo.LastName= forms!frmPatientLookup!txtLastName)
But I received a syntax errors
Basically the user has to enter the full name of the patient, I want them to be able to enter first couple letter of the patient name..
What am I doing wrong??