>It just doesn't work in the query. I get the error msg that the expression is
>too complex.
[quoted text clipped - 49 lines]
>> >> >>
>> >> >> Please respond in the newgroup and not by email.
here's the query as requested. thanks for your help with this
SELECT tblClinicalPresentation.fldCPNo, tblClinicalPresentation.fldVisitNo,
tblClinicalPresentation.fldHeightInches,
tblClinicalPresentation.fldWeightPounds, tblClinicalPresentation.fldBSA,
tblClinicalPresentation.fldRhythm, tblClinicalPresentation.fldAFibType,
tblClinicalPresentation.[fldEpisodes>72hrs],
tblClinicalPresentation.fldNoWeeksOfAfib,
tblClinicalPresentation.fldNoYearsOfAfib,
tblClinicalPresentation.fldSeverityOfPalpitation,
tblClinicalPresentation.fldSeverityOfFatigue,
tblClinicalPresentation.fldSeverityOfSOB,
tblClinicalPresentation.fldSeverityOfDizziness,
tblClinicalPresentation.fldSeverityOfLackOfEnergy,
tblClinicalPresentation.fldHistoryOfCardioversion,
tblClinicalPresentation.fldAfibFrequency
FROM tblClinicalPresentation
WHERE
(((tblClinicalPresentation.fldBSA)=Sqr(([fldHeightInches]*[fldWeightPounds])/3131)));
> Can you show us the SQL of the query?
>
[quoted text clipped - 56 lines]
>
> Please respond in the newgroup and not by email.
John Nurick - 25 Dec 2006 07:42 GMT
Hi Rob,
The SQL you posted will return all records from tblClinicalPresentation
where the the value of the field [fldBSA] is equal to the surface area
calculated from [fldHeightInches] and [fldWeightPounds]. As I understand
it, you don't have a BSA field, so that is presumably the problem. To
calculate BSA, the query should be like this:
SELECT tblClinicalPresentation.fldCPNo,
tblClinicalPresentation.fldVisitNo,
tblClinicalPresentation.fldHeightInches,
tblClinicalPresentation.fldWeightPounds,
Sqr([fldHeightInches]*[fldWeightPounds]/3131) AS BSA,
...
FROM tblClinicalPresentation
;
>here's the query as requested. thanks for your help with this
>
[quoted text clipped - 76 lines]
>>
>> Please respond in the newgroup and not by email.
--
John Nurick [Microsoft Access MVP]
Please respond in the newgroup and not by email.
RobUCSD - 25 Dec 2006 13:40 GMT
Dear MS Access MVP's, thankyou all for what you do. Thankyou John for your
help, the solution you gave works perfectly. Merry Christmas to everyone and
may 2007 be a very prosperous and peaceful year for you and your families.
Rob
> Hi Rob,
>
[quoted text clipped - 98 lines]
>
> Please respond in the newgroup and not by email.