PC Review


Reply
Thread Tools Rate Thread

access calculation under these conditions

 
 
chozze
Guest
Posts: n/a
 
      4th Jan 2008
Hi to all,

I am workin with ms access just for a short time , I know just the
basics I need to know (queries, forms etc, but no vba or sql). I like
to make ms access to calculate something for me but I really dont know
where to start or even if it is possible.

GOODS PRICE PIECES TOTAL
cola 20 x 20x
beer 25 y 25y
nuts 10 z 10z
-------------------------------------------------
total 1000

This is simplified table, I have the prices of goods and the total
amount (1000) wich have been spend on goods. I need from ms access to
fill reqiured values (where is about 19 - 40 unknown in real) Does
somebody have any idea how to do it?

thx for any answers

chozze
 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      4th Jan 2008
The first essential is that you don't store the Total column in your table
at all.

Instead, you create a query where Access calculates this for you.

For an example (very similar to yours), see:
Calculated Fields
at:
http://allenbrowne.com/casu-14.html

Once you understand that, you may also be interested in the more advanced
topic of how to let the user enter the number of pieces and the total, and
have Access figure out the unit price to store. There's a sample of how to
do that here:
Enter text in calculated controls
at:
http://allenbrowne.com/TechniqueEnterCalcText.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"chozze" <(E-Mail Removed)> wrote in message
news:a1bc0fa3-00ef-4fbb-868e-(E-Mail Removed)...
> Hi to all,
>
> I am workin with ms access just for a short time , I know just the
> basics I need to know (queries, forms etc, but no vba or sql). I like
> to make ms access to calculate something for me but I really dont know
> where to start or even if it is possible.
>
> GOODS PRICE PIECES TOTAL
> cola 20 x 20x
> beer 25 y 25y
> nuts 10 z 10z
> -------------------------------------------------
> total 1000
>
> This is simplified table, I have the prices of goods and the total
> amount (1000) wich have been spend on goods. I need from ms access to
> fill reqiured values (where is about 19 - 40 unknown in real) Does
> somebody have any idea how to do it?
>
> thx for any answers
>
> chozze


 
Reply With Quote
 
Larry Daugherty
Guest
Posts: n/a
 
      4th Jan 2008
You might study the Northwind example that came with Access. There
are lots of things there to analyze. There are also lots of templates
that you can download, setup and study.

HTH
--
-Larry-
--

"chozze" <(E-Mail Removed)> wrote in message
news:a1bc0fa3-00ef-4fbb-868e-(E-Mail Removed)...
> Hi to all,
>
> I am workin with ms access just for a short time , I know just the
> basics I need to know (queries, forms etc, but no vba or sql). I

like
> to make ms access to calculate something for me but I really dont

know
> where to start or even if it is possible.
>
> GOODS PRICE PIECES TOTAL
> cola 20 x 20x
> beer 25 y 25y
> nuts 10 z 10z
> -------------------------------------------------
> total 1000
>
> This is simplified table, I have the prices of goods and the total
> amount (1000) wich have been spend on goods. I need from ms access

to
> fill reqiured values (where is about 19 - 40 unknown in real) Does
> somebody have any idea how to do it?
>
> thx for any answers
>
> chozze



 
Reply With Quote
 
chozze
Guest
Posts: n/a
 
      4th Jan 2008
thx for answers, maybe I describe the problem badly, I understand that
I need to use queries for calculations and so, but my point is not
just to count the prices from number of pieces wich user may entry. My
goal is to that the ms access calculate the unknow (no user are going
to enter them x,y,z).

Anyway some guys starts answering me at my nature language, so it
seems to be easier to solve problem there.

thanks once again

chozze
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculation based on changing conditions xsrossiter Microsoft Excel New Users 3 28th Sep 2010 09:17 AM
Re: Sumproduct with Conditions for weighted avearge calculation Bob Umlas Microsoft Excel Discussion 0 31st Mar 2010 09:41 PM
CALCULATION BASED ON MORE THAN TWO CONDITIONS =?Utf-8?B?RWNsYWlyZXM=?= Microsoft Excel Misc 4 10th Jul 2007 03:30 PM
Use different formula to calculation based on conditions 0-0 Wai Wai ^-^ Microsoft Excel Misc 2 3rd Dec 2005 08:28 AM
Formula for calculation based on multiple conditions hforman Microsoft Excel Worksheet Functions 2 4th Oct 2004 05:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:10 PM.