Results 1 to 5 of 5
  1. #1
    hermannm is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    2

    Linking Tables

    Hi I have an access database I am trying to build but am running into issues. I want to have the following tables:



    Bank Accounts - List of all my bank accounts
    Spending - Table that holds monthly spending. The spending will be on credit card or may come from the bank account
    Inflow - Table that records monthly income
    Payments - Table that records payments to credit cards and which bank the amount came from

    I then want to have a query that shows the balances in the various accounts. For example i want to link the Bank Spending, Inflow and Payments which should show me the balance in the account. However when I try and do this the records from the tables go into columns instead of a seperate row for each record.

    Hope this makes sense.

    Thanks,

    Matt

  2. #2
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,791
    maybe there is something here that will fit. There's about 16 bank related schemas under section 8
    http://www.databaseanswers.org/data_models/

    However when I try and do this the records from the tables go into columns instead of a seperate row for each record.
    You could also post a pic of your relationships to give an idea of what you tried.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    these three tables

    Spending - Table that holds monthly spending. The spending will be on credit card or may come from the bank account
    Inflow - Table that records monthly income
    Payments - Table that records payments to credit cards and which bank the amount came from

    should be one table with a column to indicate whether the record is a spend, inflow or payment

    Or use a union query on your three tables to combine the three tables

  4. #4
    hermannm is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    2
    Quote Originally Posted by Ajax View Post
    these three tables




    should be one table with a column to indicate whether the record is a spend, inflow or payment

    Or use a union query on your three tables to combine the three tables

    Thanks. I was thinking the only way this works would be to have one table. I would prefer to have 3 tables, but i think i can make it work just using 1 table and then designing different reports to disaggregate the data to Inflow, Spending and payments.

    Matt

  5. #5
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    but i think i can make it work just using 1 table
    1 table is the proper way to do it. Keep the 3 tables if you prefer, but you will be making it much more difficult for yourself with the need for extra queries, forms and reports. e.g.

    then designing different reports to disaggregate the data to Inflow, Spending and payments.
    you can do this with one report using the transaction type as a filter - with 3 tables you would need to build 3 reports (4 if you also want a report of all transactions in date order)

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

Similar Threads

  1. Linking Tables
    By exnuke1972 in forum Access
    Replies: 4
    Last Post: 12-14-2011, 02:50 PM
  2. Linking Tables
    By label027 in forum Import/Export Data
    Replies: 1
    Last Post: 11-07-2011, 05:16 PM
  3. Linking tables
    By newtoAccess in forum Forms
    Replies: 7
    Last Post: 05-16-2011, 09:26 AM
  4. Replies: 0
    Last Post: 03-04-2011, 10:28 AM
  5. Linking tables
    By jlmnjem in forum Database Design
    Replies: 1
    Last Post: 09-17-2010, 01:36 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