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

Validate 2 date prompt in a report page

Status
Not open for further replies.

gruposenda

Programmer
Jan 11, 2007
51
MX
Hi :
Some body knows how to validate 2 date prompts ? I have a layout calculation with this code : if (ParamDisplayValue('pardateto') < ParamDisplayValue('pardatefrom')) then ('Error'), but it doesn´t work fine. It seems to validate only the day.

Thanks in advance.



 
ParamDisplayValue() may transform your date into a char like '27 Nov 2007'. In alphanumerical order:

'27 Dec 2007'<'27 Nov 2007' :S...

Maybe you should create a calculation in a Query, like:

if (?datefrom?<?dateto?) then ('ok') else ('error') end

and display it in a list
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top