Solved

Percent markdown caluclation on datasheet

Posted on 2011-02-23
3
454 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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Familiarize people with the process of utilizing SQL Server functions 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 Ac…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

920 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

18 Experts available now in Live!

Get 1:1 Help Now