hi
MS Query uses SQL and in SQL, you have to use the SQL IIf instead of the
vb
IF.
and the IIf statement goes in the MSQ SQL statement ie
SELECT name, Address, ect,
IIF(RM.RM_STD= "LOCKER",50,RM.RM_AREA*RMSTD.COST_OF_SPACE) from somedatabase.
i cannot test but your IIf statement "looks" ok so good luck.
regards
FSt1
"JTurner" wrote:
I'm querying our Oracle data to Excel and can't seem to get a formula return
as a new field.
I need the proper way to write this sequence:
IF(RM.RM_STD= "LOCKER",50,RM.RM_AREA*RMSTD.COST_OF_SPACE)
Which would basically say that if the room standard is a locker, we charge
$50 - otherwise, take the room area and multiply it by the cost per square
foot. But it doesn't matter how I write it...it's not working! HELP??!!!