Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

automatic conditional data entray

Status
Not open for further replies.

mkomor

Technical User
Feb 26, 2005
1
0
0
GB
Help for a newbie!

I’m a priest, with two churches in my care. Weddings take place in both of them, but each church has different fees for the provision of a choir.

I have a Weddings database in Approach that keeps tabs of all the relevant information; the database covers both churches.

How do I set up a field so that IF the wedding is to take place in ChurchA AND IF a choir is to be provided, then the choir fee is X; while IF the wedding is to take place in ChurchB AND IF a choir is to be provided, then the choir fee is Y ?

All help appreciated.
Thanks

Would also appreciate reply to : mkomor @ hotmail dot com
 
Hi,

I would solve this by having a calculated field with the following formula:

Code:
If(Church = "Church A", If(Choir = Yes, ChurchACharge,0),If(Choir = Yes, ChurchBCharge,0))

Because the charges will increase over time I would suggest that they are kept in fields, and not coded into the formula.

Hope that helps!

I read a book once called '101 Things to do in Binary'.
It was the best 5 things I ever read.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top