Hi All
I am trying to use SQL to run a calculation, at the moment it is:
calculatedtotal2: [QuoteFinish]-[QuoteStart]
but i would like in if/else statement, if [QuoteFinish] is null then
calculatedtotal2: [todaysdate??]-[QuoteStart]
So in VB code it would be:
if isnull(me.quotefinish.value) then
calculatedtotal2 = [Date()]-[QuoteStart]
else
[QuoteFinish]-[QuoteStart]
is this possible in SQL? or can anyone assist in converting ths above to SQL not sure on SQL coding...
Thanks
Ali
I am trying to use SQL to run a calculation, at the moment it is:
calculatedtotal2: [QuoteFinish]-[QuoteStart]
but i would like in if/else statement, if [QuoteFinish] is null then
calculatedtotal2: [todaysdate??]-[QuoteStart]
So in VB code it would be:
if isnull(me.quotefinish.value) then
calculatedtotal2 = [Date()]-[QuoteStart]
else
[QuoteFinish]-[QuoteStart]
is this possible in SQL? or can anyone assist in converting ths above to SQL not sure on SQL coding...
Thanks
Ali