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

cascading parameters

Status
Not open for further replies.

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

 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top