Solved

Percent markdown caluclation on datasheet

Posted on 2011-02-23
3
464 Views
Last Modified: 2013-11-27
I have a datasheet form that I need to do some calculation on, the control source is a query qryEdit.  There is a  SellingPrice which has a value in it, a ShowPrice which will be a minus percentage of the SellingPrice  column. For example if the sellingPrice is $100 and the Showprice is -10% of the sellingPrice , the value in the Showprice  would be $90.00. I would like to have the user enter the value, in this case 10,  in a column PrctMakDwn and have it calculate the Showprice and place the marked down value in that column. The percentage will vary for different items, Is that possible?
0
Comment
Question by:skull52
  • 2
3 Comments
 
LVL 39

Accepted Solution

by:
als315 earned 500 total points
ID: 34963635
Yes, you can do any calculation in after update event for your fieds (sellingPrice and PrctMakDwn)
Me.Showprice = Me.sellingPrice*(1 - me.PrctMakDwn)
In this case PrctMakDwn should have percent field format (if it will be double, divide it to 100)
0
 

Author Comment

by:skull52
ID: 34964641
Worked perfectly, Thanks. One quick followup, is there a way on the datasheet that you can bulk copy and paste similar to excel when you fill in a cell you can drag that value down to the rest of the cells?
0
 

Author Comment

by:skull52
ID: 34965098
Forget my last question regarding the cut and paste, even though it looks like a spread sheet it is a database and that would be against normalization and bad design. so thanks again for the quick response
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question