473,396 Members | 1,725 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

calculating a mark up

22
Hi all seems I need a life but here goes...if i have a field "cost per unit" <--- which is calculated already from dividing the total cost by the qty how can I or can I put in a calulation wherby the user can place say a 30% mark up on the cost per unit and have access automatically calculate...the mark up will be dynamic hope this makes sense

kind regards in advance on your support
Jun 28 '10 #1

✓ answered by thelonelyghost

it sounds like you two answered the question. With what little I know about VBA and such I'd say you nailed what he was asking. Here's what I understood from heart01:

Problem: Basing the value of a field on an equation (see below) that takes into account another input: price markup.

Formula: [dblTotalCost] / [intQty]

If that is indeed the question, your answer of:
Expand|Select|Wrap|Line Numbers
  1. =[cost per unit] * (1 + [Mark up cost])
would be correct. Now I wonder where that formula would be entered.

EDIT: Asked and answered. Input the code above into the control for [total with mark up]

16 11437
code green
1,726 Expert 1GB
What are you asking?
If you have
"cost per unit" <--- which is calculated already from dividing the total cost by the qty
why is a simple multiplication so much different?
Jun 28 '10 #2
heart01
22
Well I think Im totally confusing myself I now have boggled eyes as I am working on trying to update fields and the above automatic calculation anyways I guess what I am trying to do is this

On the form I have the following text boxes

cost per unit
Mark up cost (which is set as format percent)
total with mark up

so what I am trying to achieve is if the user places a figure in the cost per unit and then a percentage in the mark up cost I would like if access could automatically place the total in the total mark up box...

As I mentioned I am so boggled now nothing is seeming to make sense...
Jun 28 '10 #3
NeoPa
32,556 Expert Mod 16PB
At the risk of embarrassment, the formula for the [total with mark up] control would be :
Expand|Select|Wrap|Line Numbers
  1. =[cost per unit] * [Mark up cost]
Jun 28 '10 #4
code green
1,726 Expert 1GB
I'm glad you did that NeoPa, I was tempted to suggest
Expand|Select|Wrap|Line Numbers
  1. price =[cost per unit] * 1.3 
  2.  
For a 30% markup but did not beleive this was the question
Jun 29 '10 #5
NeoPa
32,556 Expert Mod 16PB
If that was a subtle way of pointing out my error then, well done. I probably didn't need my face rubbed in it.

However, a mistake there was in my post. I should have paid more attention to the fact that it was a mark-up rather than a Tax or other fractional formula. The answer should have been :
Expand|Select|Wrap|Line Numbers
  1. =[cost per unit] * (1 + [Mark up cost])
NB. If [Mark up cost] is displayed as a percentage as stated, then it would display as say 30%, yet the value would not be 30, but 0.3. If we were dealing with a value of 30 to represent 30% then we would need to divide this value by 100 before use.
Jun 29 '10 #6
code green
1,726 Expert 1GB
If that was a subtle way of pointing out my error then, well done. I probably didn't need my face rubbed in it.
You are very touchy today.
I was praising you for being brave in answering what seemed to be the obvious as I didn't have the courage to do so.
Nor did I consider your answer to be wrong, simply a different way of working.
By the way, have you figured out what the OPs question is yet ;)
Jun 29 '10 #7
NeoPa
32,556 Expert Mod 16PB
You misunderstand me.

I was complimenting you on bringing the point to my attention, while at the same time avoiding any embarrassment for me. If that was accidental, then it was a happy accident. I was far from put out by the comment. My only embarrassment was that I'd made the mistake in the first place.
Jun 29 '10 #8
thelonelyghost
109 100+
it sounds like you two answered the question. With what little I know about VBA and such I'd say you nailed what he was asking. Here's what I understood from heart01:

Problem: Basing the value of a field on an equation (see below) that takes into account another input: price markup.

Formula: [dblTotalCost] / [intQty]

If that is indeed the question, your answer of:
Expand|Select|Wrap|Line Numbers
  1. =[cost per unit] * (1 + [Mark up cost])
would be correct. Now I wonder where that formula would be entered.

EDIT: Asked and answered. Input the code above into the control for [total with mark up]
Jun 29 '10 #9
NeoPa
32,556 Expert Mod 16PB
I expect you're right. It's down to the OP to make the question clear though really. Having experts spend their time trying to guess what is meant is not good use of their time. It seems a shame to waste the time of people volunteering to help you. This is the message that I'm hoping to get across.

On to your clarification question though, I'm sorry if that was not clear. From the OP's post #3, it would go in the control called [total with mark up].
Jun 30 '10 #10
thelonelyghost
109 100+
@NeoPa
Is there a +rep button in this forum? LOL! Your help really is appreciated, on behalf of the OP and people like myself. I know I'd be asking that one guy in the office who is really good with Access every few minutes to help troubleshoot this. I'm glad this forum is here. (n_n)

I must have missed the part about the control box. I see what you're referring to now and will edit my above post to reflect that.
Jun 30 '10 #11
NeoPa
32,556 Expert Mod 16PB
thelonelyghost: Is there a +rep button in this forum? LOL!
I believe it's being considered for implementation soon.

PS. Don't worry about missing a detail here or there. When you have so much to read through and nothing concrete to look at it's only natural you'll miss something from time to time. I do so all the time. Hopefully it's only a small percentage overall, but it's there nevertheless.
Jun 30 '10 #12
heart01
22
a really big thanking you to all...I am the knucklehead from lack of training and understanding. I thank you all for your input and time and efforts.

I think someone mentioned i was male...guess again LOL...kind regards Deb...
Jun 30 '10 #13
NeoPa
32,556 Expert Mod 16PB
Welcome to Bytes Deb!

I don't think I would have been inclined to opt for male with an ID like Heart01 ;) It's possibly unfortunate, but I know very few men/boys who would have the courage to use such an ID.
Jul 1 '10 #14
thelonelyghost
109 100+
@NeoPa
I was thinking the same thing, yet it seems that people on forums such as these (or any technical forum, really) are predominantly male. I try to use a gender neutral pronoun such as "(s)he" or "they" if it isn't absolutely obvious. There's no hating on the women who wanna be tech-saavy, in fact I encourage their propagation!
Jul 1 '10 #15
NeoPa
32,556 Expert Mod 16PB
Propagation eh? Sounds like you're getting more into sex here than gender :D

PS. Don't worry. I'm just kidding. I know what you meant really.
Jul 1 '10 #16
thelonelyghost
109 100+
@NeoPa
Well I am still a teen (see my profile) so that is on the brain, but we both know that's not how I meant it. poor choice of words is all...
Jul 1 '10 #17

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Ron Adam | last post by:
Hi, I'm having fun learning Python and want to say thanks to everyone here for a great programming language. Below is my first Python program (not my first program) and I'd apreciate any...
5
by: PeterHardy | last post by:
I'm trying to work out an average field on a report that i'm writing and having the problem described below. e.g. if you had 3 weeks of cash which were 0, 2, 4 then a normal average would be...
2
by: MT | last post by:
Hi, I have an invoicing system using postgresql. Each time a customer makes a purchase, a new record is inserted into the "cart" table. The "cart" table, among other things, contains a customer_id...
5
by: Mark Hall | last post by:
Our reporting cycle goes from Wednesday to Wednesday an I need to calculate the next Wednesday after the update was received. If an upate comes in on say a Tuesday (eg 20 Jan 04) then I want a...
11
by: 193.123.19.116 [Daz] | last post by:
Is there any way using C library functions to get the size of a directory and its contents (without resorting to using a shell command)? ================================== Poster's IP...
5
by: sugaray | last post by:
Hi, my problem with calculating the size of an array is when I pass an array as a parameter to a function which perform the calculation, the result never comes right, like below: int...
3
by: JDiamond | last post by:
Hi, I have a table called Hosts. The Hosts table contains the following fields: Each field represents a step in the project. The tech that completes each step initials the respective...
7
by: Jeff | last post by:
Hey asp.net 2.0 I'm trying to calculate the width of the HyperLink control (see my code below). But all I get is the value 0.0 PlaceHolder placeholder =...
1
by: laredotornado | last post by:
Hi, Can anyone recommend a free script for calculating UPS shipping? I am familiar with the script written in 2000 by Jason Costomiris, but UPS is using an XML interface and I wondered if...
2
jkmyoung
by: jkmyoung | last post by:
Calculating Large Exponents Background: This is a quick article as to how to calculate the exponents of large numbers quickly and efficiently. Starting with a basic multiplication algorithm, it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.