Tap Forms Database Pro for Mac, iPhone, iPad and Apple Watch › Forums › Using Tap Forms Pro › Can one search for records with a date field older than XYZ?
- This topic has 9 replies, 2 voices, and was last updated 1 week, 3 days ago by
Michael Shapiro.
-
AuthorPosts
-
May 30, 2025 at 2:05 PM #52339
Michael ShapiroParticipantI see that I can create a search for records with a date field that “was in the last [24 hours, etc.]”
Is there a way to search for the opposite of this? That is, records whose date field is older than [interval of time]?
Thanks in advance,
Mike
May 30, 2025 at 9:35 PM #52340
BrendanKeymasterYou can use the
is before
oris after
oris on or before
oris on or after
comparison operators and provide a specific date you want as the target date.May 31, 2025 at 10:20 AM #52343
Michael ShapiroParticipantThanks for the quick response, Brendan.
I was interested in a relative rather than absolute target. E.g. “older than six months ago”. Or the negation of the current “was in the last…” criterion, which would effectively be the same thing. I take it that this isn’t currently an option?
May 31, 2025 at 11:54 PM #52348
BrendanKeymasterAh I see. No, there isn’t currently an option to do a search such as “older than six months ago” or any other unit of time. Perhaps in the future.
June 18, 2025 at 10:47 AM #52496
Michael ShapiroParticipantFor what it’s worth, this kind of query would make TFP much more useful as a CRM. A very typical CRM search is something like “show me people whose $last-contacted date is older than three months ago”.
I personally would love to bail on the overpriced Daylite, and have periodically flirted with the idea of moving to TF. Lack of this specific functionality is the current roadblock for me personally.
June 19, 2025 at 3:26 PM #52498
BrendanKeymasterHi Michael,
That’s a good comparison operator to have. I was actually working on it today, but it’s proving to be difficult because I’ve run out of different kinds of comparison operators I can do. So I’m trying to fudge the existing one I’m using for this type of query to expand it so it can be optionally used for after and before type queries.
Thanks,
Brendan
June 20, 2025 at 8:17 AM #52502
Michael ShapiroParticipantAs you are implementing a feature I’d like, I am not going to chastise you for a little kludgery in implementation. :)
June 20, 2025 at 8:30 PM #52507
BrendanKeymasterI’ve found a way to make it nice. Although I’m not sure how it’ll read in different languages.
I changed the “was in the last” and “in the next” comparison operators to just “was” and “is” with an additional parameter to let you choose “after”, “before”, or “within”.
Attachments:
You must be logged in to view attached files.June 20, 2025 at 8:32 PM #52512
BrendanKeymasterAt least I hope it makes sense.
June 21, 2025 at 10:35 AM #52514
Michael ShapiroParticipantSo if I’m interpreting all this correctly…
[date] “is after three weeks” means “occurs three weeks from today or later”
[date] “was within three months” means “occurred within the last three months”
[date] “was before three months” means “occurred further in the past than three months ago”Does that sound correct?
-
AuthorPosts
You must be logged in to reply to this topic.