Could somebody please help me with this query before I go mad!
This is the first query example. It brings up a list of records and in there are records with the same Quest_ID so there are matching related records in there:
SELECT * FROM tbl_Questionnaire LEFT JOIN tbl_Question1 ON tbl_Questionnaire.Quest_ID = tbl_Question1.Quest_ID
WHERE (((tbl_Question1.Description)="Recruitment" Or (tbl_Question1.Description)="Staff Costs") AND ((tbl_Question1.ResultClosure)=True))
ORDER BY tbl_Questionnaire.Reference_ID;
I then use AND instead of OR for Description and no records are displayed. There are some records which match this criteria as the linking Quest_ID showed this on the previous query:
SELECT * FROM tbl_Questionnaire INNER JOIN tbl_Question1 ON tbl_Questionnaire.Quest_ID = tbl_Question1.Quest_ID
WHERE (((tbl_Question1.Description)="Recruitment" And (tbl_Question1.Description)="Staff Costs") AND ((tbl_Question1.ResultClosure)=True));
I hope this is a good enough explanation for you to be able to help me. Thanks in advance....
================================
Chaos, panic & disorder - my work here is done!
================================
This is the first query example. It brings up a list of records and in there are records with the same Quest_ID so there are matching related records in there:
SELECT * FROM tbl_Questionnaire LEFT JOIN tbl_Question1 ON tbl_Questionnaire.Quest_ID = tbl_Question1.Quest_ID
WHERE (((tbl_Question1.Description)="Recruitment" Or (tbl_Question1.Description)="Staff Costs") AND ((tbl_Question1.ResultClosure)=True))
ORDER BY tbl_Questionnaire.Reference_ID;
I then use AND instead of OR for Description and no records are displayed. There are some records which match this criteria as the linking Quest_ID showed this on the previous query:
SELECT * FROM tbl_Questionnaire INNER JOIN tbl_Question1 ON tbl_Questionnaire.Quest_ID = tbl_Question1.Quest_ID
WHERE (((tbl_Question1.Description)="Recruitment" And (tbl_Question1.Description)="Staff Costs") AND ((tbl_Question1.ResultClosure)=True));
I hope this is a good enough explanation for you to be able to help me. Thanks in advance....
================================
Chaos, panic & disorder - my work here is done!
================================