Hi Folks,
When I select the Date Between function under prompts, I want to show From date to End date along with total number of days selected in report.
I user below user response to get this result and I'm not able to get possible result.
=ToDate( Substr( UserResponse("Enter value for Report Date (Start): "); 1; Pos(UserResponse("Enter value for Report Date (Start): ");"/"))+
Substr(UserResponse("Enter value for Report Date (Start): "); Pos(UserResponse(("Enter value for Report Date (Start): ");"/")+1;
(Pos(Substr(UserResponse("Enter value for Report Date (Start): "); Pos(UserResponse("Enter value for Report Date (Start): ");"/")+1;
Length(UserResponse("Enter value for Report Date (Start): ") ));" ")-1)); "MM/dd/yyyy")
Error Message on this code is: Enter is not a valid key
Expected Output will be should be like this.
Sales Report From: 01/12/2010 To: 31/12/2010
Total Number of Days: 31
Kindly suggest me how to hard code based on userresponse function.