PC Review


Reply
Thread Tools Rate Thread

Checking to see if a date has past

 
 
Howard
Guest
Posts: n/a
 
      28th Dec 2009
I'm new at using Access. I have a expiration date in the data base, and I
need to check to see if that date is past due. If it is, I need to flag it
some way. I know how to do it in Excel, but not in Access. Any suggestions?
Thanks
--
Howard
 
Reply With Quote
 
 
 
 
Jerry Whittle
Guest
Posts: n/a
 
      28th Dec 2009
You create a query that can then be run by itself or used as the basis of a
report. There are many ways to do this depending on your needs.

You could put something like below in the criteria of the date field of a
query. It will then return any record that is overdue.

> Date()


Or if the time is also important:

> Now()



In a form or report you could also use conditional formatting to change
overdueh dates to a different color or font.

For any of this to work properly, the field in question must be a Date/Time
data type. If it's a text field that looks like a date, it will take a lot
more effore to get it to work correctly.

--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"Howard" wrote:

> I'm new at using Access. I have a expiration date in the data base, and I
> need to check to see if that date is past due. If it is, I need to flag it
> some way. I know how to do it in Excel, but not in Access. Any suggestions?
> Thanks
> --
> Howard

 
Reply With Quote
 
Howard
Guest
Posts: n/a
 
      28th Dec 2009
Thanks Jerry, I'll give this a try.
--
Howard


"Jerry Whittle" wrote:

> You create a query that can then be run by itself or used as the basis of a
> report. There are many ways to do this depending on your needs.
>
> You could put something like below in the criteria of the date field of a
> query. It will then return any record that is overdue.
>
> > Date()

>
> Or if the time is also important:
>
> > Now()

>
>
> In a form or report you could also use conditional formatting to change
> overdueh dates to a different color or font.
>
> For any of this to work properly, the field in question must be a Date/Time
> data type. If it's a text field that looks like a date, it will take a lot
> more effore to get it to work correctly.
>
> --
> Jerry Whittle, Microsoft Access MVP
> Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
>
>
> "Howard" wrote:
>
> > I'm new at using Access. I have a expiration date in the data base, and I
> > need to check to see if that date is past due. If it is, I need to flag it
> > some way. I know how to do it in Excel, but not in Access. Any suggestions?
> > Thanks
> > --
> > Howard

 
Reply With Quote
 
Howard
Guest
Posts: n/a
 
      28th Dec 2009
Thanks Jerry. I'll give this a try.
--
Howard


"Jerry Whittle" wrote:

> You create a query that can then be run by itself or used as the basis of a
> report. There are many ways to do this depending on your needs.
>
> You could put something like below in the criteria of the date field of a
> query. It will then return any record that is overdue.
>
> > Date()

>
> Or if the time is also important:
>
> > Now()

>
>
> In a form or report you could also use conditional formatting to change
> overdueh dates to a different color or font.
>
> For any of this to work properly, the field in question must be a Date/Time
> data type. If it's a text field that looks like a date, it will take a lot
> more effore to get it to work correctly.
>
> --
> Jerry Whittle, Microsoft Access MVP
> Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
>
>
> "Howard" wrote:
>
> > I'm new at using Access. I have a expiration date in the data base, and I
> > need to check to see if that date is past due. If it is, I need to flag it
> > some way. I know how to do it in Excel, but not in Access. Any suggestions?
> > Thanks
> > --
> > Howard

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date Validation Current Date / Past 45 Days / Null OK Jani Microsoft Access Form Coding 2 12th Mar 2009 02:39 PM
Limit date field to only allow current date or past dates Eric Microsoft Access 1 24th Apr 2008 08:36 PM
Checking if something is past due =?Utf-8?B?Sm9uYXRoYW4=?= Microsoft Excel Programming 2 1st Nov 2006 03:50 PM
Bold face entry date fields that are past the current date. =?Utf-8?B?ZGNsYXJjcQ==?= Microsoft Access Database Table Design 4 13th Sep 2005 07:26 AM
Formatting Problem-Highlighting a cell when date has expired past current date alancyoung Microsoft Excel Misc 1 19th Feb 2004 05:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:54 AM.