S
Syed Zeeshan Haider
Hello Everybody,
I am quite a newbie in MS Access. Queries are the toughest for me. However,
I have managed to write some queries which are returning quite accurate
results.
Now I am trying to do some calculations in a query based on conditions. The
calculations can be simply described as following:
If x > y Then
x - y
ElseIf x < y Then
x + z - y
End If
Yes, I wrote it in VB style. I haven't been successful doing this in MS SQL
in an Access query.
How can I do above-mentioned *conditional calculation* in an Access query?
Thank you,
I am quite a newbie in MS Access. Queries are the toughest for me. However,
I have managed to write some queries which are returning quite accurate
results.
Now I am trying to do some calculations in a query based on conditions. The
calculations can be simply described as following:
If x > y Then
x - y
ElseIf x < y Then
x + z - y
End If
Yes, I wrote it in VB style. I haven't been successful doing this in MS SQL
in an Access query.
How can I do above-mentioned *conditional calculation* in an Access query?
Thank you,