Solved

Percent markdown caluclation on datasheet

Posted on 2011-02-23
3
438 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
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…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now