Results 1 to 3 of 3
  1. #1
    esugiawan is offline Novice
    Windows Vista Access 2002 (version 10.0)
    Join Date
    Jun 2009
    Posts
    3

    How to create function trade alloction ?

    I have 1 customer with trade more than 1 item , like this



    Click image for larger version. 

Name:	tradedetail.JPG 
Views:	12 
Size:	29.9 KB 
ID:	32768

    at the end of day, customer, want to split that transaction into several customer, with same avg price ,only difference qty , like this
    Click image for larger version. 

Name:	tradeallocation.JPG 
Views:	12 
Size:	34.5 KB 
ID:	32769

    my question is , how to create function in vba ms.access to get result like this ( new trade detail )
    Click image for larger version. 

Name:	NewTD.JPG 
Views:	12 
Size:	37.3 KB 
ID:	32770

    that new trade detail i got manually using solver ms.excel

    thx

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    youd make a 'temp' table to hold the new values.
    in a form, you could ask the user to select Trade, how many splits on it, then produce the grid of results in the temp table.

    then after validating the volume and amts, post the temp table to the actual working table.

  3. #3
    esugiawan is offline Novice
    Windows Vista Access 2002 (version 10.0)
    Join Date
    Jun 2009
    Posts
    3
    Quote Originally Posted by ranman256 View Post
    youd make a 'temp' table to hold the new values.
    in a form, you could ask the user to select Trade, how many splits on it, then produce the grid of results in the temp table.

    then after validating the volume and amts, post the temp table to the actual working table.
    can you help me with example , how to produce automatic new value trade allocation, cos i dont know the algorithm , if i have data like above ? right now i do it with manual (solver ms.excel)

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

Similar Threads

  1. Database Design - Trade Broker
    By GreenWizard in forum Database Design
    Replies: 0
    Last Post: 09-26-2013, 01:15 PM
  2. Trade Offered
    By DBA-Meister in forum Forms
    Replies: 0
    Last Post: 11-09-2012, 08:20 PM
  3. Volume limits?/ Trade Blotter Project
    By adyson21 in forum Database Design
    Replies: 2
    Last Post: 09-15-2011, 02:15 PM
  4. Replies: 0
    Last Post: 03-17-2011, 09:57 AM
  5. Need Help with Queries-Trade Analysis
    By nybanshee in forum Queries
    Replies: 0
    Last Post: 03-08-2008, 11:50 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