There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Software Development
Tag Cloud
audio blue screen boot bsod computer cpu crash dell desktop driver drivers error excel external hard drive firefox freezes freezing hard drive hardware hijack hijackthis internet internet explorer itunes laptop malware monitor mouse network networking outlook 2007 power printer problem ram router screen slow sound spyware trojan usb virus vista vista 32-bit windows windows xp windowsxp winxp wireless
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
Solved: MS Access Query Question


Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
gvgingee's Avatar
Junior Member with 3 posts.
 
Join Date: Mar 2005
Experience: Beginner
26-Mar-2005, 10:35 PM #1
Solved: MS Access Query Question
I am trying to query records that are sixty days old or more based on an "arrival date" field and today's date. For example, if an arrival date is 12/12/2004 the query should return this record and any other that are more than 60 days old. Does anyone have a suggestion for the critera?
Rockn's Avatar
Computer Specs
Distinguished Member with 17,888 posts.
 
Join Date: Jul 2001
Location: Mexico of the North, MN
Experience: Disenfranchised American Male
27-Mar-2005, 11:03 AM #2
Would the criteria for the arrival date be coming from a form field or are you just wanting to create a report based on these criteria?
Rockn's Avatar
Computer Specs
Distinguished Member with 17,888 posts.
 
Join Date: Jul 2001
Location: Mexico of the North, MN
Experience: Disenfranchised American Male
27-Mar-2005, 11:08 AM #3
You can use the DateDiff Function Like this:

DateDiff("d",[ArrivalDate],Date())>=60
OBP's Avatar
OBP OBP is offline
Computer Specs
Distinguished Member with 6,952 posts.
 
Join Date: Mar 2005
Location: UK
Experience: An old Basic Programmer
27-Mar-2005, 03:41 PM #4
You can also the simple criteia entry for the Arrival date of <date -60
gvgingee's Avatar
Junior Member with 3 posts.
 
Join Date: Mar 2005
Experience: Beginner
27-Mar-2005, 03:57 PM #5
I plugged this in and it works! Thank you!
OBP's Avatar
OBP OBP is offline
Computer Specs
Distinguished Member with 6,952 posts.
 
Join Date: Mar 2005
Location: UK
Experience: An old Basic Programmer
27-Mar-2005, 04:16 PM #6
Which ones worked?
Can you marked this thread as "Solved" using the Thread Tools at the top of the forum page?
gvgingee's Avatar
Junior Member with 3 posts.
 
Join Date: Mar 2005
Experience: Beginner
29-Mar-2005, 03:13 PM #7
arrival date
The DateDiff worked but I see that access converts it to the simpler formula. Thanks.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 11:37 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.