Antwoord
New member
- Local time
- Today, 07:07
- Joined
- Dec 22, 2021
- Messages
- 19
Hello,
Firstly apologies for the long question and all the details, hopefully you can help!
I am building a Access database to record currency trading deals and report on key financial indicators such as:
Questions:
I feel ( but could be wrong!) that the reporting I need would be possible with this set up; the types of questions I need to answer are
Once again apologies for all the detail, please do feel free to make any comments or suggestions at all, it might be blindingly obvious to you but I am a beginner I appreciate any and all your help and insight!
Thank you!
Firstly apologies for the long question and all the details, hopefully you can help!
I am building a Access database to record currency trading deals and report on key financial indicators such as:
- The cost of investment in base currency (USD) [The nature of the activity is that trading is performed in "Pairs", mostly we use a USD pair since Trading a YENEURO pair for example gets complicated for tracking cost and profitability.}
- The amount of each currency held eg. €1800 with it's historic cost in the currency used to purchase it and the base currency
- Profit/(loss) on sale of a currency (using a average (aka "pooled") cost , each sale must be attributed with a cost to calculate profit/loss - the Sales proceeds are just the sales value, the cost should be calculated by using the Average cost per unit at the time for sale ( total cost of the currency held in all accounts/the grand total of all the currency held) eg Grand total cost of GBP held= $13,800/£9750.99 = Average cost for profit calculation= $1.41524091399
- Reconciliation schedule simply to compare the totals for each currency held per the transactions listing versus the statement balances ( for each account)
- Accounts (for the different exchange and bank type accounts, we use about 9 different accounts) Primary Key=Autonumber
- Currencies ( this is simply a list of all the various currencies traded) Primary Key=Autonumber
- FilledOrders ( this records the final results of an order, fields used are Extended date, order reference (being the account's internal reference) Primary Key=Autonumber
- FilledOrderItems
- (this table records the details of an order each record will use these fields: Account (lookup combobox from tbl1)/Currency (lookup combobox from tbl2) / Amount (decimal number with 12 decimal places)/ Type of transaction(lookup from tbl5) Primary Key=Autonumber / foreign key=Lookup from FilledOrders Primary Key.
- There will be at least two records for each filled order because every transaction results in at least two filled order items eg Item 1 bought Euros and Item 2 Sold USD. In addition there may be an extra Filled order item for charges too - to make things complicated the charges vary a lot in these ways, sometimes they charge by a deduction of the currency purchased, sometimes they charge a specific currency, the rates vary at different times and on different accounts too! The only way to deal with them accurately would be to input them which would be time consuming but luckily the charges tend to be immaterial so I can ignore them mostly ( also we have changed account settings so that from June the deal values are left alone and charges are instead made against a currency balance making the audit trail easier. In summary charges are not too material and can be ignored if they create too much work)
- FilledOrderItemType ( this table categorises the type of item for example "Trade" "Charges", "45 day deposit" "90 day deposit" "Inter Account Transfer" , "reconciliation Adjustment" "Suspense" , "Lost" , "Interest". The Primary Key=Autonumber
- CurrenciesMarketvalue ( I haven't worked this table out yet but it will be used to input the latest price of each currency in USD, say at month-end and therefore help us calculate the Unrealised Gain or Loss on currency held The Primary Key? Perhaps instead of a separate table this should just be an additional field in tbl 2? However in time the data points needed for "the latest market view" will expand to include many extra values like "all time high" , "30 day high" "standard deviation" etc so I thought it might be best to have a separate table for Market data ready for this growth.
Questions:
- Do you think I am on the right path here?
- So far limited understanding of data input for Access means I am troubled by having the all important transaction entry spread across multiple tables - I can no longer simply go into table view and enter a single record, what are my options for data entry ?( so far about 400 transactions which I can do manually no problems and check against the actual account balances, but I am concerned about inputting errors going forward) However can I create a form that will populate the Filled order table and enter the multiple filled order items at the same time? Or perhaps cleaning the data up in Excel would be better and importing it ( but again each filled order has at least 2 filledorderitem records so am not sure if that would work?
- I understand that as a relational database I need to connect tables together. However about the manner to do so I am not sure I have this right, I am doing this using a Lookup field in the second table "foreign key" to use a key from the first table, for example, the "all important" FilledOrderitems table (tbl4) uses a lookup field of the Primary key field from the FilledOrders table - that way every order should be linked to the order items it is related too? However I am not clear how does this "foreign key" populate into the FilledOrderitems table (tbl4) ? It's not like Excel where I would use a formula and a manual input via cut/paste or combobox seems a duplication of input effort and risk of error? Perhaps to enter a transaction I should use a form with subform?
- form to enter the Filledorder table data
- and a Subform to enter the (multiple) FilledOrderItems so in a single input event the necessary data is entered - is this the best way to do this?
- Or perhaps all the data for the two tables can be entered in a single form?
I feel ( but could be wrong!) that the reporting I need would be possible with this set up; the types of questions I need to answer are
- How much of each currency do we hold on each account and does it agree to what the account statement says we hold? (a reconciliation report Orders data versus Account balances)
- How much did the currency we hold cost us? and How much is it worth according to the latest exchange rates (tbl 6) (portfolio valuation report - " a moment in time")
- What is our trading profit for All time for all currencies? (All time All curencies trading report)
- What is our trading profit for a specified time period for all currencies? (Periodic all currencies trading report)
- What is our trading profit for All time for a selected currency? (All time single currency trading report)
- What is our trading profit for a specified time period for a selected currency? (Periodic trading single currency trading report)
Once again apologies for all the detail, please do feel free to make any comments or suggestions at all, it might be blindingly obvious to you but I am a beginner I appreciate any and all your help and insight!
Thank you!
Last edited: