Query excessive motel expenses

F

Fly Boy 5

I'm trying to pick out cutomers with motel charges over $150 per day and
calulate the amouts that are over.

We have a maximum of $150 per day.
Expr1: [DAYS]*150 It displays the total in dollars.

Expr2: [Expr1]<[LODGING] It returns a -1 for customers that are above $150
per day. I need to be able to subtract the dollar amount of Expr1: from
[LODGING] to provide the amount over.

Thanks for your help
 
J

John Spencer

ADD Another calculated field
Field: DollarsOver: Lodging - (Days *150)

If you want to see just a number when it exceeds zero, then

Field: DollarsOver: IIF(Lodging-(Days*150)>0,Lodging-(Days*150),Null)


'====================================================
John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
'====================================================
 

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