reneelacks
Registered User.
- Local time
- Today, 02:58
- Joined
- Jan 20, 2012
- Messages
- 15
When setting the criteria for the following expression to: >30
to view any Work Orders that have been open for 30 or more days, the results display perfectly; however I want the user to be able to set the Min # of Days.. when I set the following Parameter: >[Enter Min # of Days Open]
...and enter 30, it returns WOs with that have been open for 4 or more days.... I don't want the user to have to enter the greater than (>) sign, just the #of Days
Help please!!!
#ofDaysOpen: IIf(Nz([whdateout],0)<>0,DateDiff("d",CDate(Mid([whdatein],5,2)+"/"+Right([whdatein],2)+"/"+Left([whdatein],4)),CDate(Mid([whdateout],5,2)+"/"+Right([whdateout],2)+"/"+Left([whdateout],4))),DateDiff("d",CDate(Mid([whdatein],5,2)+"/"+Right([whdatein],2)+"/"+Left([whdatein],4)),Now()))
to view any Work Orders that have been open for 30 or more days, the results display perfectly; however I want the user to be able to set the Min # of Days.. when I set the following Parameter: >[Enter Min # of Days Open]
...and enter 30, it returns WOs with that have been open for 4 or more days.... I don't want the user to have to enter the greater than (>) sign, just the #of Days
Help please!!!
#ofDaysOpen: IIf(Nz([whdateout],0)<>0,DateDiff("d",CDate(Mid([whdatein],5,2)+"/"+Right([whdatein],2)+"/"+Left([whdatein],4)),CDate(Mid([whdateout],5,2)+"/"+Right([whdateout],2)+"/"+Left([whdateout],4))),DateDiff("d",CDate(Mid([whdatein],5,2)+"/"+Right([whdatein],2)+"/"+Left([whdatein],4)),Now()))