Iff Function

L

Leo

The following is one of the fields in a query.

Expr3: IFF(DateDiff("d",[Fld39],[Fld40])>=14,([Fld38] & " X" & "
12"),([Fld38] & " X" & " 6"))

[Fld39] and [Fld40] are datefields in the table "SCHD"
[Fld38] is a text field
I need to modify the string in that text field as above depending on the
DateDiff.

When I run the query an error message "Undefined Function in Expression"
appears.
What am I doing wrong?

Thanking you in advance
Leo
 
L

Leo

oops!
I promise I will be careful from now on...instead of abusing the discussion
group.

Thank you
Leo

KARL DEWEY said:
Try IIF ----
--
Build a little, test a little.


Leo said:
The following is one of the fields in a query.

Expr3: IFF(DateDiff("d",[Fld39],[Fld40])>=14,([Fld38] & " X" & "
12"),([Fld38] & " X" & " 6"))

[Fld39] and [Fld40] are datefields in the table "SCHD"
[Fld38] is a text field
I need to modify the string in that text field as above depending on the
DateDiff.

When I run the query an error message "Undefined Function in Expression"
appears.
What am I doing wrong?

Thanking you in advance
Leo
 

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