P
Pete Provencher
Access 2000
I have three sales dates for property, (NBHD_Sales_Price_1,
NBHD_Sales_Price_2, NBHD_Sales_Price_3). I want to create a new field, which
I will update using a query. I want the query to look at the three dates and
to update the new field with the latest date. I attempted to write an IIF
statement to perform this operation but it errors out with :
The expression you entered has a function containing the wrong number of
arguments
My formula is;
IIF([NBHD_Sales_Price_3]>0),[NBHD_Sales_Price_3],(IIF([NBHD_Sales_Price_2]>0
),[NBHD_Sales_Price_2],[NBHD_Sales_Price_1])
Any help will be appreciated.
Pete Provencher
I have three sales dates for property, (NBHD_Sales_Price_1,
NBHD_Sales_Price_2, NBHD_Sales_Price_3). I want to create a new field, which
I will update using a query. I want the query to look at the three dates and
to update the new field with the latest date. I attempted to write an IIF
statement to perform this operation but it errors out with :
The expression you entered has a function containing the wrong number of
arguments
My formula is;
IIF([NBHD_Sales_Price_3]>0),[NBHD_Sales_Price_3],(IIF([NBHD_Sales_Price_2]>0
),[NBHD_Sales_Price_2],[NBHD_Sales_Price_1])
Any help will be appreciated.
Pete Provencher