I'll try to explain it better. I am trying to basically create a "To Do" list. In my program, there is a table called TrackItems where they can assign tasks to each other and themselves, but there's not a report made that will bring up their "to do's" for each day. I have the following fields that I'm working with.
{TrackItems.CpDt} as a number field
{TrackItems.Stat} a string field
{TrackItems.Who} a string field
{TrackItems.DuDt} a number field
my record selection reads as follows.
{TrackItems.CpDt} = 0 and
{TrackItems.Stat} in ["Requested", "Required"] and
{TrackItems.Who} = {?Name of User} and
{TrackItems.DuDt} in {@Start Date} to {@EndDate}
The first three Items are great. I have a param for who that works just fine, but because DuDt is stored as a an 8 digit nubmer rather than a date, I have to use the @start date and @enddate formulas so that my users don't have to input their dates like 20030506.
I have tried a few different formulas, but can't find one that will pass to the SQL Query.
Right now I have this:
@startdate
val(mid({?Start Date},7,4)+left({?Start Date},2)
+mid({?Start Date},4,2))
@enddate
val(mid({?End Date},7,4)+left({?End Date},2)
+mid({?End Date},4,2))
They work brilliantly in Crystal Reports, but when I run the report from proform the date field doesn't pull up right and if I view the SQL Query from Crystal, I get this:
SELECT
Search."ByrName", Search."SlrName",
TrackItems."FirmFile", TrackItems."Stat", TrackItems."What", TrackItems."Who", TrackItems."DuDt", TrackItems."CpDt"
FROM
{ oj "ProForm"."dbo"."Search" Search INNER JOIN "ProForm"."dbo"."TrackItems" TrackItems ON
Search."FirmFile" = TrackItems."FirmFile"}
WHERE
TrackItems."CpDt" = 0 AND
(TrackItems."Stat" = 'Required' OR
TrackItems."Stat" = 'Requested') AND
TrackItems."Who" = 'Alisha'
The DuDt formula from the record selection doen't pass through. I don't really have a preference as to what type of parm I use for the ?startdate and ?enddate as long as I can get it to work.
Is this enough information? tell me if you need anything else.