follower2020
New member
- Local time
- Today, 17:53
- Joined
- May 14, 2020
- Messages
- 9
Hello everyone ..
I have a search form that will filter data shown in the Subform.
I am dealing with Patients Data which I save in a table. For Diagnosis Category , I am having 2 fields:
I use the second field for some cases like cancer in the bones ( so for example , I will enter ortho in diagnosis 1 , Cancer in diagnosis 2 )
in the search form , when I select cancer , I want to see the results for both diag 1 and diag 2
suppose I have 10 patients with cancer as diag 1
and 2 patients with cancer as diag 2
here, I want the results to be 10+2 = 12 Patients
I done know how to play with this part of code :
strWhere = strWhere & " AND " & "Patients.DiagnosisCategory1 Like '" & Me.DiagnosisCategory & "'"
so that it shows the required results.
Thank you..
I have a search form that will filter data shown in the Subform.
I am dealing with Patients Data which I save in a table. For Diagnosis Category , I am having 2 fields:
I use the second field for some cases like cancer in the bones ( so for example , I will enter ortho in diagnosis 1 , Cancer in diagnosis 2 )
in the search form , when I select cancer , I want to see the results for both diag 1 and diag 2
suppose I have 10 patients with cancer as diag 1
and 2 patients with cancer as diag 2
here, I want the results to be 10+2 = 12 Patients
I done know how to play with this part of code :
strWhere = strWhere & " AND " & "Patients.DiagnosisCategory1 Like '" & Me.DiagnosisCategory & "'"
so that it shows the required results.
Thank you..