May 1, 2007 #1 eoggb Programmer Feb 2, 2006 20 CA CR 11 I have a date parameter call rig date and if the users does not know the rig date i want them the parameter to return the current date
CR 11 I have a date parameter call rig date and if the users does not know the rig date i want them the parameter to return the current date
May 1, 2007 #2 synapsevampire Programmer Mar 23, 2002 20,180 US I use thismethod: I create a command query for the pick list using a UNION, as in: select '1970-01-01' TheDate from anyttable UNION ALL select TheDate from yourtable Have them select the 1970 date when unknown, then codethe record selection as: if{?MyParm} <> cdate(1970,1,1) then {table.date} = {MyParm} else if{?MyParm} = cdate(1970,1,1) then {table.date} = curentdate It can get a lil hairy... -k Upvote 0 Downvote
I use thismethod: I create a command query for the pick list using a UNION, as in: select '1970-01-01' TheDate from anyttable UNION ALL select TheDate from yourtable Have them select the 1970 date when unknown, then codethe record selection as: if{?MyParm} <> cdate(1970,1,1) then {table.date} = {MyParm} else if{?MyParm} = cdate(1970,1,1) then {table.date} = curentdate It can get a lil hairy... -k