Results 1 to 3 of 3
  1. #1
    AseretinMO is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2018
    Posts
    1

    Question Assistance with Query Calculation - Previous Month Total

    Click image for larger version. 
<br /><script async src=
    Name: Prior Month Balance.jpg  Views: 10  Size: 120.9 KB  ID: 33894" class="thumbnail" style="float:CONFIG" />


    I am new to queries and need to create a calculation that will return the Net Gain/Loss for the Prior Month


    SELECT [Mock Data].[Curent Month_Date], [Mock Data].[Agent ID], [Mock Data].[Customer ID], [Mock Data].[Customer Name], [Mock Data].[Beginning Balance], [Mock Data].[Monthly Payment], [Mock Data].[Net Gain/Loss], [Mock Data].[Ending Balance], [Curent Month_Date]-1 AS [Prior Month]
    FROM [Mock Data];

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    in a form, youd have 2 text boxes with txtSTartDate and txtEndDate,
    the query , qsCurrentMonth, would pull the data from these dates.

    i have an extra 2 text boxes, txtPrevStartDate and txtPrevEndDate
    (i make them automatic: txtPrevStartDate = DateAdd("m",-1,txtSTartDate)
    the query , qsPrevMonth, would pull the data from these dates.

    the final query pulls data from both to show them together

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. query readings from current and previous month
    By JRCharlie in forum Access
    Replies: 14
    Last Post: 04-15-2018, 01:41 PM
  2. Replies: 6
    Last Post: 02-27-2018, 12:37 PM
  3. Rolling 3 month and 12 month Calculation
    By REGeekker in forum Programming
    Replies: 10
    Last Post: 03-30-2015, 07:29 PM
  4. Replies: 2
    Last Post: 02-12-2015, 05:14 AM
  5. Replies: 34
    Last Post: 03-03-2014, 09:24 AM

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