bdam Posted December 15, 2006 Posted December 15, 2006 Ok, so I want to tackle the birthday problem but with a slight twist: find everyone who has a birthday this month including the last 5 days of the previous month. So for December I would find 11/26 to 12/31. Now, I know how to calculate the day, month and the range but it's the year that trips things up. If you search for a range it always puts a specific year in. So if I search (manually) in the date of birth field for "11/26...12/31" it puts in the current year and shows no results. If I put in "11/26/*...11/26/*" it returns every record in the db. Thougths?
bdam Posted December 15, 2006 Author Posted December 15, 2006 Got it figured out using multiple requests. One request to find the current month 12/*/* and 5 additional requests for the specific days 11/26/*. This is being done in a script so that works splendidly.
PaddyO Posted December 29, 2006 Posted December 29, 2006 Hi, I was searching to find out how to do a date range, can you show me that calc? I need to use the date range in finding records for a report but I'm not sure what that script should look like... Thanks!
PaddyO Posted December 29, 2006 Posted December 29, 2006 I found a solution here too. I was just coming back to post this thread when I saw your note. Thank you! http://fmforums.com/forum/showtopic.php?tid/181154/post/231164/hl/date+range/
PaddyO Posted December 29, 2006 Posted December 29, 2006 Spoke too soon. I can't get the script to work. Keeps telling me that there is no valid criteria. I set up the globals to be Date and Text. Didn't work either way. Is it because the date on my transaction record ( the records I'm trying to find and sort...) is an auto enter and the range is therefore not looking at it. A better question might be, is the date range formula even looking at the date on my record?
mr_vodka Posted December 29, 2006 Posted December 29, 2006 The globals should be date fields. Are you sure that you have set them up as globals? You may want to double check. The field being an autoentry field should be irrelevant.
PaddyO Posted December 29, 2006 Posted December 29, 2006 Disregard. Embarassed newbie humbly admits mistake. I forgot to reference my T_DateCreated field in the script...
The Shadow Posted December 30, 2006 Posted December 30, 2006 You can also search for a range of days like this: 11/{26...31}/* so you could do this in two find requests rather than six.
Recommended Posts
This topic is 6538 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