Results 1 to 9 of 9
  1. #1
    Newaccessuser is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2011
    Posts
    5

    Simple calculations to be shown in reports

    Hi,

    I'm totally new with Micorsoft Access.. My question is simple but before that, heres the situation

    "I created a database which contains the Item price, its quantity and the cost price."

    now for the question.... How do I apply the formulas which would multiply the quantity with item price and show the total value and then show it in the report that is being generated...i know its done through query but how. I can do it in excel, but i dont know how to do it in access.



    Plz help.....


    Regards,
    NewAccessUser

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Are you trying to have an inventory report that prices out you inventory? The calculation can easily be done in a query that would then be the RecordSource of your Report. You would create an additional "field" in the query similar to:
    LineValue:=[ItemPrice]*[Quantity]
    ...using your actual field names of course.

  3. #3
    Newaccessuser is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2011
    Posts
    5
    Yes that is what i'm basically looking for.Thankyou for this, however i'm still new to access and dont exactly know how to design a query, i keep having errors... Okie heres what i have and what i want. I have a field 'Quantity' in my table, The price is not in the table, its what i wanna write when i apply the formula.... this is what i want.

    I want that when generate report, it should automatically show the calculated prices, where as at the time of data entry i am only entering the quantity (Price will obviously be added by me in query as a numeric value).... but how to go about it.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Quote Originally Posted by Newaccessuser View Post
    I want that when generate report, it should automatically show the calculated prices, where as at the time of data entry i am only entering the quantity (Price will obviously be added by me in query as a numeric value)
    I'm afraid you lost me on that. "adding a price in a query"? I'm not sure what you are trying to achieve. Obviously you are not extending your inventory costs as I first thought.

  5. #5
    Newaccessuser is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2011
    Posts
    5
    okie, suppose I have a value 30 and i wanna multiply every value in the field "Quantity" with 30 to to get my desired result. How do i do that in a query ? can i do that in a query ?

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Where do you want the result?

  7. #7
    Newaccessuser is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2011
    Posts
    5
    in a report that I generate.

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    It would still be something like I described in post #2 except you would probably reference the form that is driving the report:
    LineValue:=[Quantity]*([Forms].[YourForm].[YourValueControl])
    ...Using your names of course.

  9. #9
    Newaccessuser is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2011
    Posts
    5
    okie, let me try and i will get back to you.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 01-04-2011, 06:30 PM
  2. Edit record in form with original entry shown
    By erknoebe in forum Access
    Replies: 5
    Last Post: 09-29-2010, 02:33 PM
  3. Calculations in reports
    By bvanscoy678 in forum Reports
    Replies: 4
    Last Post: 08-05-2010, 06:27 AM
  4. Replies: 14
    Last Post: 06-03-2010, 06:03 PM
  5. Replies: 0
    Last Post: 03-01-2010, 02:53 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums