IFF (In A Querry)

G

Guest

(In A Querry)I need to add a calculated field named MonthlyDue (Caption
property value Monthy Due) I need to use the IFF fuction to set the Monthly
due feild value to monthlyFee value for MembershipStatus field value of
active and to zerp in all other cases. can anyone help me with this?

Octet32
 
B

BruceM

I think you are looking for the IIf function. It may something like:

MonthlyDue: IIf([MemberStatus] = "Active",10,0)

This could appear in a text box formatted for Currency. This assumes
MemberStatus is a text field and that the monthly fee is $10. There are
several approaches, depending on the situation.

See Help for more about the IIf function. If you still have questions, post
details.
 
G

Guest

Thanks

BruceM said:
I think you are looking for the IIf function. It may something like:

MonthlyDue: IIf([MemberStatus] = "Active",10,0)

This could appear in a text box formatted for Currency. This assumes
MemberStatus is a text field and that the monthly fee is $10. There are
several approaches, depending on the situation.

See Help for more about the IIf function. If you still have questions, post
details.

Octet32 said:
(In A Querry)I need to add a calculated field named MonthlyDue (Caption
property value Monthy Due) I need to use the IFF fuction to set the
Monthly
due feild value to monthlyFee value for MembershipStatus field value of
active and to zerp in all other cases. can anyone help me with this?

Octet32
 

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