Query with if

G

Guest

I have created a query with a calculated field to compute the inflation from
the current year to the year given from a form. I have it calculating fine
however i want all years in the past till the current year to have an
inflation of 0. how do i add an if statement or condition to a computed
field. Thank you for all your help.
 
G

Guest

Thank you so much. It helps to use the correct syntax. Thank you again.

Dennis said:
=IIf([YourYear] < Year(Now()),0,your current calc)

Edward Jones (Eddie) said:
I have created a query with a calculated field to compute the inflation from
the current year to the year given from a form. I have it calculating fine
however i want all years in the past till the current year to have an
inflation of 0. how do i add an if statement or condition to a computed
field. Thank you for all your help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top