Results 1 to 5 of 5
  1. #1
    Ron.Sul is offline Novice
    Windows Vista Access 2007
    Join Date
    Sep 2010
    Posts
    5

    Question Purchase price of asset

    How can I get the sub-total and total of the purchase price to appear in an Asset report?



    The sub-total and total of the current value appears automatically but I need totals of the purchase price.

    Can anyone help?

    Regards Ron

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    no idea without details about the data structure.

  3. #3
    Ron.Sul is offline Novice
    Windows Vista Access 2007
    Join Date
    Sep 2010
    Posts
    5
    Thanks Adam.

    I'm not sure of what you mean by "data structure"

    The following is what I did:

    I opened Microsoft Access. Clicked on the "Asset" template and named it "Household Inventory", set the file path then downloaded it. The form opened as "Asset List" and then filled in the details of my items in the relevant fields including the purchase price in the "Purchase Price" field. I finished entering all my items, saved the file, then right clicked on "Assets by Category" in the left pane under "Reports" then clicked "Open". I viewed the report and saw that the field "Purchase Price" was not sub-totalled or totalled and that the "Current Value" field was.
    I need to know the total purchase price for each category. I don't know what elseI can say or what other information you want.

    Regards Ron

  4. #4
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    I apologize Ron. What I meant was that you didn't specify where the data was coming from. Without saying, noone knows if you're using a MS template or not. You could've been using a custom built program. Sorry about that!

    Anyway, if you look at the Current Value tBox in design view of the report, you'll see this in the control source:
    Code:
    =Nz(Sum([Current Value]),0)
    Just simply make a new box for yourself and copy it on over:
    Code:
    =Nz(Sum([Purchase Price]),0)
    Just takes a little inspection!

    Remember too, that control names don't always = control source names. Always use the control name when you use a function in a control source, other wise you see that wonderful little #!NUM value. Something like that anyway...

  5. #5
    Ron.Sul is offline Novice
    Windows Vista Access 2007
    Join Date
    Sep 2010
    Posts
    5
    Thanks Adam,

    I wasn't sure how to add a new box so I just changed "Current Value" in the code to "Purchase Price" and moved the box over. It worked fine!

    For future reference I would appreciate it if you could advise me of the steps tp take to make a new box.

    Regards Ron

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

Similar Threads

  1. Purchase orders 2 in 1
    By jordanturner in forum Forms
    Replies: 1
    Last Post: 09-09-2010, 03:38 AM
  2. Storing asset class Correlations help!
    By tdham in forum Database Design
    Replies: 1
    Last Post: 04-27-2010, 08:33 AM
  3. Look up price
    By matt4003 in forum Queries
    Replies: 7
    Last Post: 12-28-2009, 02:19 PM
  4. Replies: 0
    Last Post: 08-31-2009, 10:50 AM
  5. Multiple Price Columns
    By kmwhitt in forum Access
    Replies: 0
    Last Post: 04-04-2009, 09:48 PM

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