I would surround 38*7 with parenthesis as such dDate= CTOD([01/01/2009])+(38*7)
This guarantees 38*7 is calculated first and makes the code more readable. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Eurico Chagas Filho Sent: Tuesday, September 15, 2009 20:05 To: [email protected] Subject: RE: date functions Hi Generalize from this code... dDate= CTOD([01/01/2009])+38*7 && Somewhere in the week ddate-DOW(ddate)+2 && lunes ddate-DOW(ddate)+6 && Friday HTH, E. [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/050a01ca3670$51de4a40$f59ade...@net ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

