dbTalk Databases Forums  

Testing for time elapsed

comp.database.ms-access comp.database.ms-access


Discuss Testing for time elapsed in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Barbara Warszycki
 
Posts: n/a

Default Testing for time elapsed - 06-30-2005 , 07:05 PM






I need to test each transaction listed in a Transaction table to find out if
, as of "today",at least 14 days have past since the date listed in the
"ClosingDate" field. If this is true I want to have a "yes" show up in a
field called "is commission eligible to be paid?"

I also may need to test for other conditions in order for the yes to show.

I am totally at a loss for the proper way to put the expressions together.
Any help would be greatly appreciated.



Reply With Quote
  #2  
Old   
Ira Solomon
 
Posts: n/a

Default Re: Testing for time elapsed - 07-02-2005 , 02:06 PM






Barbara:
The simplest way to do this is to use an update query.
basically you need to use the DateAdd function to generate the 14 days
past date and then compare that to the current date.
If that is all you need the query will work and I'll send you a sample
if you tell me what version of Access you have.

If you have other conditions you might still be able to do it in a
query or you might ndeed a bit of code.

Tell me more about the other conditions.

Good luck
Ira Solomon

On Thu, 30 Jun 2005 20:05:06 -0400, "Barbara Warszycki"
<bjw3kids (AT) aol (DOT) com> wrote:

Quote:
I need to test each transaction listed in a Transaction table to find out if
, as of "today",at least 14 days have past since the date listed in the
"ClosingDate" field. If this is true I want to have a "yes" show up in a
field called "is commission eligible to be paid?"

I also may need to test for other conditions in order for the yes to show.

I am totally at a loss for the proper way to put the expressions together.
Any help would be greatly appreciated.



Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.