Results 1 to 2 of 2
  1. #1
    philippon is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2011
    Posts
    1

    History of Value of Portfolio based on Transactions and Prices

    Good morning,

    I am trying to write a query returning the Dates and Value of a Portfolio at that dates.

    The Portfolio is based on Transactions and Prices.

    I have got the following tables:
    Dates (Dates)
    Transactions (Dates, Product, Quantity)
    Prices (Dates, Product, Price)

    For clarity, the value of my portfolio on Date D is then defined as:
    Sum of (Sum of (Quantity Where Date < Date D)) *( Price Where Date = Date D))



    I manage to get the value of the Portolio on a specified Date running a query with a parameter, but not the history of those Values on all the Dates.

    I have tried to find a solution to this (rather basic) issue on the web, and could not find it.

    Many thanks in advance

  2. #2
    NoellaG's Avatar
    NoellaG is offline VIP
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,046
    Hi,

    can't you make a groups query, group by day,take these data as a base for a second query that makes your calculation taking the groupsdate as a criterion?

    grNG

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

Similar Threads

  1. Help needed on Contracts Portfolio database
    By futurecoder in forum Database Design
    Replies: 4
    Last Post: 04-04-2011, 09:08 AM
  2. Design multi user database - avoid simultaneity transactions
    By snoopy2003 in forum Database Design
    Replies: 2
    Last Post: 02-27-2011, 12:03 AM
  3. Creating numbered tickets for door prices
    By newtoAccess in forum Access
    Replies: 4
    Last Post: 11-22-2009, 10:03 AM
  4. Transactions over multiple subroutines
    By jp2access in forum Programming
    Replies: 0
    Last Post: 08-30-2009, 10:34 PM
  5. Comment History
    By botts121 in forum Programming
    Replies: 0
    Last Post: 07-02-2009, 01:02 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