June 10, 200520 yr I am tracking doctors with liablility insurance expiration dates throughout the calendar and would like to identify those with dates within a chosen month. What is an elegant method of performing this find while selecting the month from a pop up list?
June 10, 200520 yr Does the year matter? If not, create a calculation of MonthName(datefield), and perform your search in this field. If your list contains abbreviated month names, then use Left( MonthName(datefield); 3 ).
June 10, 200520 yr Author I just created month and year search fields calculated from the expiration date. Then performed a search for the month (selected from a pop up list) AND the year entered from Year(Get(CurrentDate)). The _globalSearchMonth was determined by a previous window where the user selected from a pop up list for _globalSearchMonth. Enter Find Mode SetField (MonthSearch, _globalSearchMonth) SetField (YearSearch, Year(Get(CurrentDate) Perform Find It appears to work but is there a cleaner method without creating the calculated month and year calculated fields?
Create an account or sign in to comment