+ Reply to Thread
Results 1 to 3 of 3

Create a complex calulated field in a query based off of todays date

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-11-2014
    Location
    Eugene, Oregon
    MS-Off Ver
    MS EXCEL 2010
    Posts
    210

    Create a complex calulated field in a query based off of todays date

    Once a month I pull a download out of our system and import it into access as a table, I then create a query that pulls in Name and each Month of the year (i.e. July, August, September, etc.) as the field headings. These headings contain a persons name and their monthly pay I want to create a calculated field that looks at today's date and pulls based on that date sums all months prior to that date. FYI, Our fiscal year starts July 1 and ends June 30. So for instance if today is any date between 3/1/16 and 3/30/2016 than it Sums July-February and as soon as the date changes to 4/1/2016 it would then sum July-March and so on. Is this possible in Access.

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,190

    Re: Create a complex calulated field in a query based off of todays date

    in a form, put text boxes for txtStart, txtEnd
    the form knows what today is, so build a function to put the dates in the box for your fiscal year.

    then the query cant build the field off the form:
    Rng: forms!frmRpts!txtStart & "-" & forms!frmRpts!txtEnd

  3. #3
    Forum Contributor
    Join Date
    09-11-2014
    Location
    Eugene, Oregon
    MS-Off Ver
    MS EXCEL 2010
    Posts
    210

    Re: Create a complex calulated field in a query based off of todays date

    Thank you!!! That worked. Ive been struggling here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 06-19-2015, 09:23 AM
  2. Replies: 2
    Last Post: 10-15-2010, 09:02 AM
  3. Replies: 2
    Last Post: 10-27-2009, 02:21 PM
  4. Using VB to find a range based on todays date and todays date +30
    By Steve_al in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2009, 09:31 AM
  5. Returning the value of a field based on todays date?
    By leedslad in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-25-2009, 07:56 PM
  6. Replies: 3
    Last Post: 05-28-2008, 01:32 PM
  7. Inputting Todays time and date Query
    By Newson in forum Excel General
    Replies: 2
    Last Post: 04-23-2007, 07:56 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1