Young Padawan Posted March 14, 2005 Author Posted March 14, 2005 Hi, I'm trying to script a search for dates that fall within a certain range in a schedule. For the start date I use >= start date in the date field in find mode, but I can't seem to do anything like: >= startdate and <= enddate in the field. Here's what I have for a script so far: Show Custom Dialog Box ["Search Criteria"; "Please enter a start and end date"; UI_Schedule::Global_SearchStartDate; UI_Schedule::Global_SearchEndDate) Go To Database ["Database - Schedule_DailyEntries"(Schedule_DailyEntries)"] Show All Records Enter Find Mode {} Set Field [schedule_DailyEntries::Schedule_DailyEntries_Date;">= " & Global_SearchStartDate] Perform Find[] And it does find the dates that occur after the start date, but do I have to do another search after that to further constrict the found set? Is there any way to have multiple search criteria for one field in a search?
Young Padawan Posted March 14, 2005 Posted March 14, 2005 Hi, I'm trying to script a search for dates that fall within a certain range in a schedule. For the start date I use >= start date in the date field in find mode, but I can't seem to do anything like: >= startdate and <= enddate in the field. Here's what I have for a script so far: Show Custom Dialog Box ["Search Criteria"; "Please enter a start and end date"; UI_Schedule::Global_SearchStartDate; UI_Schedule::Global_SearchEndDate) Go To Database ["Database - Schedule_DailyEntries"(Schedule_DailyEntries)"] Show All Records Enter Find Mode {} Set Field [schedule_DailyEntries::Schedule_DailyEntries_Date;">= " & Global_SearchStartDate] Perform Find[] And it does find the dates that occur after the start date, but do I have to do another search after that to further constrict the found set? Is there any way to have multiple search criteria for one field in a search?
Young Padawan Posted March 14, 2005 Author Posted March 14, 2005 Hi, I'm trying to script a search for dates that fall within a certain range in a schedule. For the start date I use >= start date in the date field in find mode, but I can't seem to do anything like: >= startdate and <= enddate in the field. Here's what I have for a script so far: Show Custom Dialog Box ["Search Criteria"; "Please enter a start and end date"; UI_Schedule::Global_SearchStartDate; UI_Schedule::Global_SearchEndDate) Go To Database ["Database - Schedule_DailyEntries"(Schedule_DailyEntries)"] Show All Records Enter Find Mode {} Set Field [schedule_DailyEntries::Schedule_DailyEntries_Date;">= " & Global_SearchStartDate] Perform Find[] And it does find the dates that occur after the start date, but do I have to do another search after that to further constrict the found set? Is there any way to have multiple search criteria for one field in a search?
RalphL Posted March 14, 2005 Posted March 14, 2005 Use the range symbol ... between start and end dates in the set field step.
RalphL Posted March 14, 2005 Posted March 14, 2005 Use the range symbol ... between start and end dates in the set field step.
RalphL Posted March 14, 2005 Posted March 14, 2005 Use the range symbol ... between start and end dates in the set field step.
Ugo DI LUCA Posted March 14, 2005 Posted March 14, 2005 Hi, A range is generally defined using the "..." operator so that the search criteria is gStart...gEnd.
Ugo DI LUCA Posted March 14, 2005 Posted March 14, 2005 Hi, A range is generally defined using the "..." operator so that the search criteria is gStart...gEnd.
Ugo DI LUCA Posted March 14, 2005 Posted March 14, 2005 Hi, A range is generally defined using the "..." operator so that the search criteria is gStart...gEnd.
Recommended Posts
This topic is 7252 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now