A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Increasing a price by %



 
 
Thread Tools Display Modes
  #1  
Old May 27th, 2010, 10:10 PM posted to microsoft.public.access
Lilliana
external usenet poster
 
Posts: 1
Default Increasing a price by %

Hi,
I'm a bit stuck on part of an assignment. I have to design a database for a
company that is user friendly for beginner Access users. Here is the part
I'm stuck on:
"I would like some sort of automatic update of selling prices. We do
across-the-board selling price changes from time to time - usually increases
in response to increases in materials. For example just last week we
increased all selling prices by 5%. However we would want to choose the
percentage - it would not always be 5%."
I know how to increase prices by a certain percentage within queries (either
Select or Update queries), but how would I make this user friendly? I know I
can put a button on a form to run a query, but I cant seem to figure out how
to get Access to request the parameter so the company could input the
percentage increase. Also not sure on the formula for doing this either.
For example presuming the field is called Cost, so you have
CostIncrease:[Cost]*1.1, this works for 10% but to be user friendly I would
want the company to enter 10% rather than 1.1 in the parameter value box.
Any ideas?
  #2  
Old May 27th, 2010, 10:33 PM posted to microsoft.public.access
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default Increasing a price by %

You could use that same form, add a textbox, ask the user to indicate the %
in the textbox, then modify your query to use that value, with something
like (untested):

Forms!YourForm!YourTextBox

Good luck!

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

"Lilliana" wrote in message
...
Hi,
I'm a bit stuck on part of an assignment. I have to design a database for
a
company that is user friendly for beginner Access users. Here is the part
I'm stuck on:
"I would like some sort of automatic update of selling prices. We do
across-the-board selling price changes from time to time - usually
increases
in response to increases in materials. For example just last week we
increased all selling prices by 5%. However we would want to choose the
percentage - it would not always be 5%."
I know how to increase prices by a certain percentage within queries
(either
Select or Update queries), but how would I make this user friendly? I
know I
can put a button on a form to run a query, but I cant seem to figure out
how
to get Access to request the parameter so the company could input the
percentage increase. Also not sure on the formula for doing this either.
For example presuming the field is called Cost, so you have
CostIncrease:[Cost]*1.1, this works for 10% but to be user friendly I
would
want the company to enter 10% rather than 1.1 in the parameter value box.
Any ideas?



  #3  
Old May 27th, 2010, 10:40 PM posted to microsoft.public.access
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Increasing a price by %

User friendly --
IIF(Left([Enter percent change with minus sign if lowering], 1) ="-",
[Cost] - [Cost] * Abs([Enter percent change with minus sign if
lowering]/100), [Cost] + [Cost] * Abs([Enter percent change with minus sign
if lowering]/100))

--
Build a little, test a little.


"Lilliana" wrote:

Hi,
I'm a bit stuck on part of an assignment. I have to design a database for a
company that is user friendly for beginner Access users. Here is the part
I'm stuck on:
"I would like some sort of automatic update of selling prices. We do
across-the-board selling price changes from time to time - usually increases
in response to increases in materials. For example just last week we
increased all selling prices by 5%. However we would want to choose the
percentage - it would not always be 5%."
I know how to increase prices by a certain percentage within queries (either
Select or Update queries), but how would I make this user friendly? I know I
can put a button on a form to run a query, but I cant seem to figure out how
to get Access to request the parameter so the company could input the
percentage increase. Also not sure on the formula for doing this either.
For example presuming the field is called Cost, so you have
CostIncrease:[Cost]*1.1, this works for 10% but to be user friendly I would
want the company to enter 10% rather than 1.1 in the parameter value box.
Any ideas?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:03 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.