Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Percent markdown caluclation on datasheet

Posted on 2011-02-23
3
Medium Priority
?
508 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 40

Accepted Solution

by:
als315 earned 2000 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
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…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Suggested Courses

926 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