K
kevinjwilson
Please see the two sql statments below. The first generates resulting
records, the second adds a criteria but returns no records. Reviewing
the original record set, it does contain data that meets the criteria.
The field in question is a yes/no field in access. Please provide
guidance regarding the use of the inter join and criteria in a query.
It does not seem to be working for me.
Thanks
SELECT dbo_tblStudy.Creator, dbo_tblStudy.CreationTime, [Tbl_PSG
QA].[Titration?], [Tbl_PSG QA].[Reviewed by], [Tbl_PSG QA].[Time btn
pressure Inc], [Tbl_PSG QA].[Approp pressure change], [Tbl_PSG
QA].[overall qualtiy of titration], [Tbl_PSG QA].EEG, [Tbl_PSG QA].EOG,
[Tbl_PSG QA].EKG, [Tbl_PSG QA].[EMG-chin], [Tbl_PSG QA].[EMG-Legs],
[Tbl_PSG QA].[EMG-IC], [Tbl_PSG QA].[Nasal Flow], [Tbl_PSG QA].[CPAP
Flow], [Tbl_PSG QA].[R Effort (RC)], [Tbl_PSG QA].[R Effort (AB)],
[Tbl_PSG QA].[CPAP Pressure], [Tbl_PSG QA].SaO2, [Tbl_PSG
QA].[Artifacts Recognized], [Tbl_PSG QA].Comments, [Tbl_PSG
QA].Artifact_Popping, [Tbl_PSG QA].Artifact_Repiratory, [Tbl_PSG
QA].Artifact_Sweat, [Tbl_PSG QA].[Artifact_EKG in EEG], [Tbl_PSG
QA].[Artifact_EKG in EOG], [Tbl_PSG QA].[Artifact_EMG in EEG]
FROM [Tbl_PSG QA] INNER JOIN dbo_tblStudy ON [Tbl_PSG QA].[Study GUID]
= dbo_tblStudy.StudyGUID;
SELECT dbo_tblStudy.Creator, dbo_tblStudy.CreationTime, [Tbl_PSG
QA].[Titration?], [Tbl_PSG QA].[Reviewed by], [Tbl_PSG QA].[Time btn
pressure Inc], [Tbl_PSG QA].[Approp pressure change], [Tbl_PSG
QA].[overall qualtiy of titration], [Tbl_PSG QA].EEG, [Tbl_PSG QA].EOG,
[Tbl_PSG QA].EKG, [Tbl_PSG QA].[EMG-chin], [Tbl_PSG QA].[EMG-Legs],
[Tbl_PSG QA].[EMG-IC], [Tbl_PSG QA].[Nasal Flow], [Tbl_PSG QA].[CPAP
Flow], [Tbl_PSG QA].[R Effort (RC)], [Tbl_PSG QA].[R Effort (AB)],
[Tbl_PSG QA].[CPAP Pressure], [Tbl_PSG QA].SaO2, [Tbl_PSG
QA].[Artifacts Recognized], [Tbl_PSG QA].Comments, [Tbl_PSG
QA].Artifact_Popping, [Tbl_PSG QA].Artifact_Repiratory, [Tbl_PSG
QA].Artifact_Sweat, [Tbl_PSG QA].[Artifact_EKG in EEG], [Tbl_PSG
QA].[Artifact_EKG in EOG], [Tbl_PSG QA].[Artifact_EMG in EEG]
FROM [Tbl_PSG QA] INNER JOIN dbo_tblStudy ON [Tbl_PSG QA].[Study GUID]
= dbo_tblStudy.StudyGUID
WHERE ((([Tbl_PSG QA].[Titration?])=-1));
records, the second adds a criteria but returns no records. Reviewing
the original record set, it does contain data that meets the criteria.
The field in question is a yes/no field in access. Please provide
guidance regarding the use of the inter join and criteria in a query.
It does not seem to be working for me.
Thanks
SELECT dbo_tblStudy.Creator, dbo_tblStudy.CreationTime, [Tbl_PSG
QA].[Titration?], [Tbl_PSG QA].[Reviewed by], [Tbl_PSG QA].[Time btn
pressure Inc], [Tbl_PSG QA].[Approp pressure change], [Tbl_PSG
QA].[overall qualtiy of titration], [Tbl_PSG QA].EEG, [Tbl_PSG QA].EOG,
[Tbl_PSG QA].EKG, [Tbl_PSG QA].[EMG-chin], [Tbl_PSG QA].[EMG-Legs],
[Tbl_PSG QA].[EMG-IC], [Tbl_PSG QA].[Nasal Flow], [Tbl_PSG QA].[CPAP
Flow], [Tbl_PSG QA].[R Effort (RC)], [Tbl_PSG QA].[R Effort (AB)],
[Tbl_PSG QA].[CPAP Pressure], [Tbl_PSG QA].SaO2, [Tbl_PSG
QA].[Artifacts Recognized], [Tbl_PSG QA].Comments, [Tbl_PSG
QA].Artifact_Popping, [Tbl_PSG QA].Artifact_Repiratory, [Tbl_PSG
QA].Artifact_Sweat, [Tbl_PSG QA].[Artifact_EKG in EEG], [Tbl_PSG
QA].[Artifact_EKG in EOG], [Tbl_PSG QA].[Artifact_EMG in EEG]
FROM [Tbl_PSG QA] INNER JOIN dbo_tblStudy ON [Tbl_PSG QA].[Study GUID]
= dbo_tblStudy.StudyGUID;
SELECT dbo_tblStudy.Creator, dbo_tblStudy.CreationTime, [Tbl_PSG
QA].[Titration?], [Tbl_PSG QA].[Reviewed by], [Tbl_PSG QA].[Time btn
pressure Inc], [Tbl_PSG QA].[Approp pressure change], [Tbl_PSG
QA].[overall qualtiy of titration], [Tbl_PSG QA].EEG, [Tbl_PSG QA].EOG,
[Tbl_PSG QA].EKG, [Tbl_PSG QA].[EMG-chin], [Tbl_PSG QA].[EMG-Legs],
[Tbl_PSG QA].[EMG-IC], [Tbl_PSG QA].[Nasal Flow], [Tbl_PSG QA].[CPAP
Flow], [Tbl_PSG QA].[R Effort (RC)], [Tbl_PSG QA].[R Effort (AB)],
[Tbl_PSG QA].[CPAP Pressure], [Tbl_PSG QA].SaO2, [Tbl_PSG
QA].[Artifacts Recognized], [Tbl_PSG QA].Comments, [Tbl_PSG
QA].Artifact_Popping, [Tbl_PSG QA].Artifact_Repiratory, [Tbl_PSG
QA].Artifact_Sweat, [Tbl_PSG QA].[Artifact_EKG in EEG], [Tbl_PSG
QA].[Artifact_EKG in EOG], [Tbl_PSG QA].[Artifact_EMG in EEG]
FROM [Tbl_PSG QA] INNER JOIN dbo_tblStudy ON [Tbl_PSG QA].[Study GUID]
= dbo_tblStudy.StudyGUID
WHERE ((([Tbl_PSG QA].[Titration?])=-1));