Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DateTime Field Calculation

Status
Not open for further replies.

gkrenton

MIS
Jul 2, 2003
151
US
Have a table that has a field
modify_date in modify_date DATETIME YEAR TO SECONd format
I want to use this field in a
when statement comparing it to today less 2 days
In access I can do a
modify_date<=date()-2 & get the proper result but seems infomrix is a bit more picky.
What is the syntax for doing this comparision realizing that the 'time' element will never be exact.
- Thanks

Gina
 
try this:

modify_date <= current year to day - 2 units day

regards,

Iñaki
 
I am trying to get the number of months between two date in a select statement with
'22/06/2005' - edat AS Period

but it returns the only the number of days and i have tried vaious things but seem only get errors. I have also tried UNITS Months but this returns a binary that i can't read. Can anyone help please.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top