Results 1 to 11 of 11
  1. #1
    BringTheR41n is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    36

    Queries using multiple sources

    Im creating a query to help keep my bills in order and so i have a table set up with all the information in it. what i need to do is figure every time i input an expense, it will subtract that bill from my remaining total and display what is left, ie: i have $2000 and i spend $200. i need the new column to read $1800. i know there is probably an easy way to figure this but i cant figure out how. is there an easy function i can plug into the query design to accomplish this? any help is appreciated.

    I need the values to be kept the same throughout the column just the value for that new balance will change. i dont know how to set up a sum function in order to do this. i need it to be the newest balance - current bill = current balance.
    Last edited by June7; 07-09-2014 at 04:05 PM.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,944
    Conventional approach is to add up all receipts, add up all payments, subtract total payments from total receipts to determine balance.

    Would need to know more about your data structure to offer more specific guidance.

    I expect a report will be best vehicle for accomplishing this data manipulation.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    BringTheR41n is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    36
    what i really need to do is grab data from an excel spread sheet. there is a formula that i used to easily input any time i had a bill and it would take my previous balance(column 1) plus any deposits (column 2) minus the bill (column 3) and place the new total in column 1 but in the same line as the bill and it would still have the balance you had before. i would like for the numbers to appear as tho im looking at a bank statement with every purchase and the balance for each line after each payment. i have thought about doing what you said above but i am wanting to go more in the every purchase instead of the overall. i appreciate the help.

  4. #4
    BringTheR41n is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    36
    i have been looking online and ran into running sums? i dont understand how to use them or how they work but i think that's what im going for?

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,944
    A running sum in form or query can be done with DSum() function but domain aggregate functions can be slow performers. A running balance in form or query is complicated. Nether is advisable, especially if users are allowed to sort records.

    Running balance should be done in a report, but even then it is tricky. Textbox in report has a RunningSum property not available in form. Need a starting balance in report header - determining this value is the hard part. Then in the Detail section a textbox that does RunningSum calculation (this can be hidden if you want). Then another textbox in the Detail section has expression like: [startbalance - running] to give the balance with each transaction.

    However, a bank statement (and check register) has deposits as well as payments. Where are your deposits in this scenario?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #6
    BringTheR41n is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    36
    my deposits are in a different column off to the side. i manually plug in information into that column like date it was deposited and amount. thats how i have the previous balance plus deposits minus bills. moreso to keep everything in day-by-day records.

  7. #7
    BringTheR41n is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    36
    would it just be better to keep the excel table as it is and not worry about transfering everything to access? or is accomplishing this beyond the skill of a beginner? because what you explained above seems super complicated..beyond the skill of someone who has been using access for 2 weeks now.

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,944
    If all you care about is current balance and not summarizing by expense or other data manipulation, Excel might be better for your needs, for now. It's possible could outgrow. Very large Excel files can be slow.

    Review: http://office.microsoft.com/en-us/te...010356098.aspx
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  9. #9
    BringTheR41n is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    36
    I have the bills broken up by month so it doesnt get too large. But access is mainly used for grouping and manipulating information such as where i am spending money whether it's utilities or payroll moreso than just seeing if i have money?

  10. #10
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,944
    Yes, Access just might be overkill for your needs at this time. If you learn more about Access and become more comfortable with it, you might want to take advantage of its data manipulation functionality.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  11. #11
    BringTheR41n is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    36
    alright thank you for the help. i appreciate it

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

Similar Threads

  1. Replies: 3
    Last Post: 10-18-2013, 07:29 AM
  2. Replies: 57
    Last Post: 06-20-2013, 07:09 PM
  3. Mobile Reporting with Multiple Data Sources
    By ndallenaz in forum Import/Export Data
    Replies: 0
    Last Post: 02-15-2013, 08:09 PM
  4. Linking to multiple sources
    By jlfoster2 in forum Access
    Replies: 4
    Last Post: 07-02-2012, 05:47 PM
  5. Link to multiple sources
    By AquaChaos in forum Import/Export Data
    Replies: 4
    Last Post: 06-16-2010, 02:43 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