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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Last7Days Function

Status
Not open for further replies.
Mar 20, 2009
102
US
Could someone please tell me why this will not work:

{Command.Invoice Date} in Last7Days

This is a datetime field.

Thanks!
 
try this:

If {Command.Invoice Date} in Last7Days Then

{Command.Invoice Date}

Else

0
 
Gives me an error message:

'A String is required here' and highlights Last7Days
 
That means your datefield is a string and needs to be converted to a date. However, we don't know what the string looks like.

-LB
 
This is what the string looks like:

2003-01-10 00:00:00.000
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top