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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to discount a number by a percentage

Status
Not open for further replies.

hemmjonny

Programmer
Apr 11, 2011
2
GB
Hi all,

I am trying to think of the best way to discount a number from an access db.

Basically it’s an online hotel room tariff. So if someone clicks they want to stay 5 nights I want to be able to call the base price from the db and then times it by 5 and then discount a percentage per night. Or have I just made this way too complicated and over looked an easier solution.

Thanks

Jonathan
 
Hi mate,

Thanks for you reply. sorry i did not make it clear but what i want is if they stay for say 2 nights they can have a discount of say 10% and if they stay for say 4 nights they can have a discount of 15% so on and so on.

maybe i could do what you have done and then wrap it in a CFIF and then do a few of them with differnt percentage's do you think that would work?

Thanks

Jonathan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top