Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old February 22nd, 2006, 02:15 AM
joeserrone@hotmail.com
Guest
 
Posts: n/a
Default MS Access Now() minus preset amount of Minutes

Hello Everyone,
I am trying to build a query in MS Access, I would like to be able to
subtract a set amount of minutes from the Now() function. What I'm
trying to do is be able to say:
New Time: Now() - [Minutes] for example is Now() is 2/21/2006 9:04:08
PM and Minutes is equal to 3 the result would be 2/21/2006 9:01:08 PM.

Can someone help me with this?

Thanks




  #2  
Old February 22nd, 2006, 02:35 AM
Br@dley
Guest
 
Posts: n/a
Default Re: MS Access Now() minus preset amount of Minutes

joeserrone@hotmail.com wrote:[color=blue]
> Hello Everyone,
> I am trying to build a query in MS Access, I would like to be able to
> subtract a set amount of minutes from the Now() function. What I'm
> trying to do is be able to say:
> New Time: Now() - [Minutes] for example is Now() is 2/21/2006 9:04:08
> PM and Minutes is equal to 3 the result would be 2/21/2006 9:01:08 PM.
>
> Can someone help me with this?
>
> Thanks[/color]


NewTime: DateAdd("nn", -3, Now())

?

--
regards,

Br@dley


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,414 network members.