Results 1 to 4 of 4
  1. #1
    larkinw is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2022
    Posts
    1

    Date Calculation


    I have a table with field called REPORT DATE and another table with field EST REPORT DATE. I need to have query reflect NEW REPORT DATE. The results could either be a future date or a past date. I know I could come up with days between them being either a positive or negative number. But, I need the new report date not the number of days.

  2. #2
    Micron is online now Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,424
    Why would you have dates that apply to any one report in different tables? Breaking up data like this is a common cause for roadblocks that db designers find themselves up against. If it has to be, then your query would need both tables, joined by whatever fields are common between them and a calculated field using IIF function to return whichever date is the max date - assuming that is the test.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,564
    Quote Originally Posted by larkinw View Post
    I have a table with field called REPORT DATE and another table with field EST REPORT DATE. I need to have query reflect NEW REPORT DATE. The results could either be a future date or a past date. I know I could come up with days between them being either a positive or negative number. But, I need the new report date not the number of days.
    You have not even said how you are meant to calculate NEW REPORT DATE ?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    larkinw,
    Welcome to the forum.
    Can you step back a little and describe (in simple plain English) the "business process" that you are trying to support with a database? A little more context should help you get focused responses.

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

Similar Threads

  1. Date Calculation
    By Naja in forum Queries
    Replies: 5
    Last Post: 10-16-2020, 07:39 AM
  2. Replies: 1
    Last Post: 02-10-2017, 03:10 PM
  3. Date Calculation
    By dharsh in forum Access
    Replies: 3
    Last Post: 06-26-2013, 11:19 AM
  4. Date Calculation
    By logle0917 in forum Reports
    Replies: 3
    Last Post: 08-06-2012, 08:18 PM
  5. Date Calculation
    By Lazor78 in forum Forms
    Replies: 4
    Last Post: 01-25-2012, 11:53 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