I have the following select statement in SQL on a ASP age.
SELECT Weekly_input.Starting_ID, Weekly_input.Weekly_Input_Date, Weekly_input.Week_number, Weekly_input.Foodpacks_taken, Weekly_input.Weight, Weekly_input.Phase, CIF.Phase, CIF.Height, Starting_details.Starting_date, Weekly_input.Counsellor, CIF.Forename, CIF.Surname, Starting_details.CIF_Number, Weekly_input.WID, CIF.[Counsellor ID], Starting_details.Phase_change_date, Starting_details.Management_week_number, Starting_details.Finishing_date, Starting_details.Continuing, Starting_details.Starting_weight, Starting_details.Group_number, Starting_details.Phase, Starting_details.Counsellor_ID, Starting_details.Starting_ID, Int((Weekly_input.Weight/(CIF.Height*CIF.Height))*10 + 0.5)/10 AS BMI , Starting_details.Holding FROM (CIF INNER JOIN Starting_details ON CIF.[CIF Number] = Starting_details.CIF_Number) INNER JOIN Weekly_input ON Starting_details.Starting_ID = Weekly_input.Starting_ID WHERE CIF.[Counsellor ID] = 'grarug' AND Weekly_input.Weekly_Input_Date = '29/Dec/2001' and Starting_details.Continuing = '1' ORDER BY CIF.Surname, CIF.Forename;
Right in the middle is a calculation which works fine without the INT function. However, the calculation needs it. MS-Access allows the INt but this select issues an error on the web page that Int is not a recognised function. Help!!! what can I do.
Cheers
SELECT Weekly_input.Starting_ID, Weekly_input.Weekly_Input_Date, Weekly_input.Week_number, Weekly_input.Foodpacks_taken, Weekly_input.Weight, Weekly_input.Phase, CIF.Phase, CIF.Height, Starting_details.Starting_date, Weekly_input.Counsellor, CIF.Forename, CIF.Surname, Starting_details.CIF_Number, Weekly_input.WID, CIF.[Counsellor ID], Starting_details.Phase_change_date, Starting_details.Management_week_number, Starting_details.Finishing_date, Starting_details.Continuing, Starting_details.Starting_weight, Starting_details.Group_number, Starting_details.Phase, Starting_details.Counsellor_ID, Starting_details.Starting_ID, Int((Weekly_input.Weight/(CIF.Height*CIF.Height))*10 + 0.5)/10 AS BMI , Starting_details.Holding FROM (CIF INNER JOIN Starting_details ON CIF.[CIF Number] = Starting_details.CIF_Number) INNER JOIN Weekly_input ON Starting_details.Starting_ID = Weekly_input.Starting_ID WHERE CIF.[Counsellor ID] = 'grarug' AND Weekly_input.Weekly_Input_Date = '29/Dec/2001' and Starting_details.Continuing = '1' ORDER BY CIF.Surname, CIF.Forename;
Right in the middle is a calculation which works fine without the INT function. However, the calculation needs it. MS-Access allows the INt but this select issues an error on the web page that Int is not a recognised function. Help!!! what can I do.
Cheers