IIf([Units Cume].Flight = "FLT2",.001 * SUM([Units Cume].TotAlloc), 0) with an alias as GrossFlt2
The function is to identify the record by its FLT number, in this case FLT2 and then perform a calculation if FLT2 does not match then value is 0 (zero)
I am linked via an Ms Access ADP to an MSDE SQL database.
I tried the COALESCE function COALESCE (.001 * SUM(dbo.[Units Cume].TotAlloc), 0) which works fine but I don't know where to specify the FLT number.
The end result would be various colums with aliases FLT1, FLT2 etc with the appropriate calculations.
Anyone want to take a stab a this - I would be grateful
PS I am upsizing to SQL from Acces because my data is to big now. I have produce fabulous apps in MS Access and would like to keep it as a front end
Regards - Julio
The function is to identify the record by its FLT number, in this case FLT2 and then perform a calculation if FLT2 does not match then value is 0 (zero)
I am linked via an Ms Access ADP to an MSDE SQL database.
I tried the COALESCE function COALESCE (.001 * SUM(dbo.[Units Cume].TotAlloc), 0) which works fine but I don't know where to specify the FLT number.
The end result would be various colums with aliases FLT1, FLT2 etc with the appropriate calculations.
Anyone want to take a stab a this - I would be grateful
PS I am upsizing to SQL from Acces because my data is to big now. I have produce fabulous apps in MS Access and would like to keep it as a front end
Regards - Julio