Results 1 to 5 of 5
  1. #1
    Mehvan's Avatar
    Mehvan is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2016
    Posts
    133

    Post How will I view a monthly profit or loss ?

    Hello Everyone

    I made an automatic profit or loss in MS Access 2010 , but I want to make a Monthly Profit or Loss
    I have (First Time Invoice , When the begin First Year of course we will need to have : FirstInvoice , PurchaseInvoice, ReturnPurchaseInvoice , SalesInvoice and ReturnSalesInvoice) on Papers I can do it , but I can't do it in MS Access

    For Example : Total price of items in Store for this month
    Customers Debt


    Suppliers Debt
    Expenses
    Amount in the fund or in the bank on your account

    But the rest of the debts of customers or suppliers must be carried over to the next month and so on
    and also should appear to me last months as a report even I know which months is better and which one is not good

    Can Someone help me with an Example , please ?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,527
    start with a form to query from....it will have 2 text boxes, txtStartDate, txtEndDate
    you fill in the date range to query, 1 month to view.

    build your base queries to pull data from the tables based on the form date:
    qsCustDebt = select * from tCustomerDebt where [date] between forms!myForm!txtStartDate and forms!myForm!txtEndDate

    same with other tables.
    once you have all the queries, then you can put them in a master query to calculate profit/loss.

  3. #3
    Mehvan's Avatar
    Mehvan is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2016
    Posts
    133
    thanks for your help

    But how I show each month separately in one report ?
    for example : january - 2018 = 200 $ profit
    February - 2018 = 300$ loss
    March - 2018 = 500$ profit and so on

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,527
    your queries would join together on ClientID and Month
    (month would be a virutal field in each query : month([date])

    then calc profit/loss on the joined record.

  5. #5
    Mehvan's Avatar
    Mehvan is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2016
    Posts
    133
    thanks a lot ranman 256 for your help

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

Similar Threads

  1. Replies: 1
    Last Post: 08-13-2016, 08:13 AM
  2. Replies: 15
    Last Post: 09-01-2015, 12:20 PM
  3. Replies: 1
    Last Post: 05-30-2013, 11:29 PM
  4. Replies: 6
    Last Post: 11-10-2012, 09:49 PM
  5. New to Access, Need to Design Database for Non-Profit
    By oatsybob in forum Database Design
    Replies: 1
    Last Post: 10-01-2012, 04:47 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