Need Query Arithmetic help

rynorem

Registered User.
Local time
Today, 17:55
Joined
Jan 9, 2006
Messages
27
I have a date in the format of 01-NOV-05. In the criteria how can I get it to add 6 months to that date. Maybe I need to go back to school but can't figure it out for the life of me. Please help.
 
Not too sure exactly but i'd try ([location of date goes here]+00/06/00)
 
Overflow

Thanks, Mikk for the response.

The date is in the ADV E4 TBL so I put this:

([ADV E4 TBL.DOR]+0/6/0) and get an overflow error. That's new to me.
 
Hi -

As Rich pointed out, the DateAdd() function is the way to go.

Example:

x = #01-Nov-05#
? format(dateadd("m", 6, x), "medium date")
01-May-06

Bob
 

Users who are viewing this thread

Back
Top Bottom