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!

Simple Date Array 1

Status
Not open for further replies.

Simon9999

Technical User
Oct 25, 2006
105
GB
Hi

I am using CRxi and SQL Server.

I would like to use a simple formula to evaluate if two seperate dates fall between a date range.

Rather than evaluating each date seperately I wanted to use a simple array, but am unsure what I should enter. My first attempt is:

if [date({BidEventDates.ITNdate}),date({BidEventDates.PQQdate})]
in {@start date} to {@End date} then "Y"

However this does not work, I believe this may be because the array produces to outputs.

Would appreciate any suggestions.

Thanks

Simon
 
I don't think you can use an array because you will still have to subscript it and specify one of them.
I think the only way is to test seperately.

if date({BidEventDates.ITNdate}) in {@Start date} to {@End date})
or date({BidEventDates.PQQdate}) in {@Start date} to {@End date}) then "Y"


~Brian
 
Thanks Brian,

Wasn't sure if it could be done or i just couldn't see.

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top