Results 1 to 3 of 3
  1. #1
    tmcrouse is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Apr 2009
    Posts
    169

    Stumped on date

    I have a query that I am trying to construct and a bit confused on how I should construct the date. I have the following columns with data in my table:



    sysid
    dischargedate
    firstservicedate
    proc

    I want to have the query to compare the dischargedate and firstservicedate and return any sysid where the firstservicedate is 30days greater than the dischargedate

    so i would think putting something like [dischargedate]>31[firstservicedate] in the firsetservicedate area??? not sure. really confused on this one.

  2. #2
    tmcrouse is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Apr 2009
    Posts
    169
    I was thinking about putting in the firstservicedate column

    =datediff([dischargedate],[firstservicedate])+30

  3. #3
    tmcrouse is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Apr 2009
    Posts
    169
    or maybe
    [dischargedate]>=[firstservicedate]+30

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

Similar Threads

  1. PLEASE HELP...deadline at work and stumped!
    By dukenukem in forum Forms
    Replies: 4
    Last Post: 11-25-2011, 01:06 PM
  2. Really stumped newbie here
    By alwittlich in forum Access
    Replies: 5
    Last Post: 05-18-2011, 11:55 AM
  3. Should be simple query but I'm stumped
    By hvacfixer in forum Queries
    Replies: 9
    Last Post: 10-09-2010, 10:05 PM
  4. Stumped! Counting query based on 2 different tables
    By TheWolfster in forum Queries
    Replies: 7
    Last Post: 09-10-2010, 01:10 PM
  5. Stumped on an INSERT
    By Elisa in forum Programming
    Replies: 1
    Last Post: 12-26-2009, 10:49 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