Experts,
I'm trying to add 14 days to the Now() function in a query but it's
not working. I try using it in conjunction with DateAdd function with
no success.
Please help!
|
|
0
|
|
|
|
Reply
|
Shiller
|
3/18/2008 8:07:34 PM |
|
"Not working" isn't very descriptive.
What is happening?
Regards
Jeff Boyce
Microsoft Office/Access MVP
"Shiller" <shillerc@gmail.com> wrote in message
news:6a94cb4b-c083-4bb1-8575-f3b9cd91e363@n58g2000hsf.googlegroups.com...
> Experts,
>
> I'm trying to add 14 days to the Now() function in a query but it's
> not working. I try using it in conjunction with DateAdd function with
> no success.
>
> Please help!
|
|
0
|
|
|
|
Reply
|
Jeff
|
3/18/2008 8:28:07 PM
|
|
It helps other to make suggestions if you give more information than 'but
it's not working.' What are your results? What is your exact SQL
statement that you are trying? Give examples of data input and output.
--
KARL DEWEY
Build a little - Test a little
"Shiller" wrote:
> Experts,
>
> I'm trying to add 14 days to the Now() function in a query but it's
> not working. I try using it in conjunction with DateAdd function with
> no success.
>
> Please help!
>
|
|
0
|
|
|
|
Reply
|
Utf
|
3/18/2008 8:29:02 PM
|
|
On Mar 18, 4:28 pm, "Jeff Boyce" <nonse...@nonsense.com> wrote:
> "Not working" isn't very descriptive.
>
> What is happening?
>
> Regards
>
> Jeff Boyce
> Microsoft Office/Access MVP
>
> "Shiller" <shill...@gmail.com> wrote in message
>
> news:6a94cb4b-c083-4bb1-8575-f3b9cd91e363@n58g2000hsf.googlegroups.com...
>
> > Experts,
>
> > I'm trying to add 14 days to the Now() function in a query but it's
> > not working. I try using it in conjunction with DateAdd function with
> > no success.
>
> > Please help!
When I run the query with "Now() + 14" as the criteria I get nothing
back eventhough I have data in my table that matches that criteria.
|
|
0
|
|
|
|
Reply
|
Shiller
|
3/18/2008 8:44:18 PM
|
|
> When I run the query with "Now() + 14" as the criteria I get nothing
> back eventhough I have data in my table that matches that criteria.
You sure about that?
Now() includes a Date *And* Time value. When you say you have data that
matches that criteria, it would have to match the hh:mm:ss as well as the
date, so it entirely possible that you don't have any matches. Actually, the
stored value is more precise that hh:mm:ss, so its even less likely you have
a match.
If the field you are trying to match only contains a Date value then you
probably want:
Date()+14
If the field you are trying to match contains Date and Time, but you only
want to match the Date portion then:
DateValue([MyDateTimeField]) with Criteria of Date()+14
--
HTH,
George
"Shiller" <shillerc@gmail.com> wrote in message
news:b9fa5c81-a108-4ac6-93e6-34df7735221f@e39g2000hsf.googlegroups.com...
> On Mar 18, 4:28 pm, "Jeff Boyce" <nonse...@nonsense.com> wrote:
>> "Not working" isn't very descriptive.
>>
>> What is happening?
>>
>> Regards
>>
>> Jeff Boyce
>> Microsoft Office/Access MVP
>>
>> "Shiller" <shill...@gmail.com> wrote in message
>>
>> news:6a94cb4b-c083-4bb1-8575-f3b9cd91e363@n58g2000hsf.googlegroups.com...
>>
>> > Experts,
>>
>> > I'm trying to add 14 days to the Now() function in a query but it's
>> > not working. I try using it in conjunction with DateAdd function with
>> > no success.
>>
>> > Please help!
>
> When I run the query with "Now() + 14" as the criteria I get nothing
> back eventhough I have data in my table that matches that criteria.
>
|
|
0
|
|
|
|
Reply
|
George
|
3/18/2008 8:57:41 PM
|
|
|
4 Replies
184 Views
(page loaded in 0.092 seconds)
Similiar Articles: Use Function in Query problem - microsoft.public.access.queries ...... will just have to remember to not reply to any post using that method from now ... Can I Use Sum() Function Along With Update Query? Function Problem In A Query; How To Use ... problem with DateDiff expression - microsoft.public.access.queries ...Liz The problem probably isn't with Now(), but you still don't want to use that. ... Setting the display format of a query using the DateDiff function ... Problem ... SLOPE function malfunctioning - microsoft.public.excelI am having a serious problem with excel. For my research, which I am supposed to be analysing now, I must use the SLOPE function, with which the “known ys” are ... Countif - problem counting text, other text - microsoft.public ...... specific states appear (ID,UT,OR,NV,WA) BUT I now ... I run into problems because there may be additional text ... Excel ... that in some sheets, my countif function works ... comdlg32.ocx - Microsft Common Dialog Control issue - microsoft ...> It now does not run a function within the application. > I believe comdlg32.ocx is the problem. > I unselected Microsoft Common Dialog Control 3.0 (SP3) and it has ... DateDiff Problem - microsoft.public.access.formsProblem with iif and datediff expression in form - microsoft ... Problem with ... code; the error is at Return DateDiff(DateInterval.Day, D1, DateTime.Now) Public Function ... Format Problem - microsoft.public.access.formscoding... this is what I get. ? format(datepart("yyyy", now()),"... ... part of question, related partially I think to problem ... to a date (which is what your Format(ADate,"yy") function ... undefined function replace in expression - microsoft.public.access ...... native replace function.it works fine> inside access.> i've changed sandbox value to 0.> but the problem still persists.> in addiction now there is no REPLACE function ... vba line input not recognizing end of line - microsoft.public.vb ...I had this problem, and saw others had it as well; I just wanted to post my ... As a result, the line input function now reads the entire file at once, instead of ... Problem sending from IE8 to OneNote - microsoft.public.onenote ...... try to clip from IE8 using the Send to OneNote function ... me -- I'm usually the guy ANSWERING questions, now I ... >There has been occurrences of a similar problem with 32 ... Linear Functions Problems with Solutions - Free Mathematics ...Solve problems involving linear functions. Several problems with detailed ... 5 and b = 2 and write the formula for function f as follows f(x) = - 5 x + 2 We now use the ... This function is not available now - Product Problem Support ...Problem with LG 42LP1D 42 in. HDTV LCD Television. This function is not available now. Last night all of the sudden I am getting this flashing message right in the ... OpenOffice.org Forum :: problem with recovery function - now ...Posted: Fri Jul 09, 2010 3:26 pm Post subject: problem with recovery function - now original file corrupted LG TV keeps flashing This function is not available now. - FixYaProblem with LG 42LC2D 42 in. HDTV LCD Television. LG TV keeps flashing This function is not available now. Keeps fashing on tv this function is not available now. Solving Quadratic Functions and Word ProblemsNow, go back to MS Word and hit CTRL and the letter v at the same ... a) What is the function that describes this problem? FORMTEXT Answer: b) The ball will be how high ... 7/26/2012 1:39:04 AM
|