Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

finding certificate expiry dates

Featured Replies

  • Newbies

Hi, I am making a database for my Fathers business, he does MOT testing(a test all cars have to go through once a year in the UK). I would like to create some kind of find that would show us the customers which has a MOTs that is a month or less away from expiring. But I'm not sure how to go about it and have spent many hours trying unsuccessfully. Could any one enlighten me as to how to do it. I am using filemaker pro 8.5. Thanks in advance for you help

Hi kiwimac, welcome to the forums :

A MOTs that is a month or less away from expiring

Enter Find Mode[]

Set Field[ expirydate ; Get(CurrentDate)-30 & "..." & Get(CurrentDate)]

Perform Find[]

... Should work

I.e. Find all the records that have an expiry date between 30 days ago and today.

If you wish to include any records which might have slipped PAST expiration, you might want to use:

" < " & Get ( CurrentDate ) + 30

LaRetta :wink2:

You know, that's what I typed initially... but for some reason that didn't appeal to my head. Must be that time of day lol.

You probably pulled the reins in to meet the request implicitly ... "A MOTs that is a month or less away from expiring". You nailed the request!

Ya know, Genx, I can't help but mention that we should include proper protections in a script given (particularly to someone who rates themselves as novice) AND since no script exists yet ("I would like to create some kind of find").

Welcome to FM Forums, kiwimac! :laugh2: Genx and I were a bit short in our responses; for me, it was because it was very early. For Genx, probably because it was very late. ROFLMAO! Here's a complete script which should work nicely for you. Let us know if it needs adjusted at all:

Set Error Capture [ On ]

Enter Find Mode [ ] [color:gray]... uncheck pause

Set Field[ expirydate ; " < " & Get ( CurrentDate ) + 30 ]

Perform Find [ ]

If [ not Get ( FoundCount ) ]

Show Custom Dialog [ OK ; "No MOTs found." ]

Else

... do whatever you wish with the found set

End If

LaRetta

For Genx, probably because it was very late

Lol, it's only 10PM, I've got a few hours in me yet : . I actually pulled quite a painful 36 hour day the other ... other day (exams and work don't mix that well) But yes, point well taken LaRetta :

StatlerAndWaldorf.jpg

I can't help but mention that we should include proper protections in a script given (particularly to someone who rates themselves as novice)

Isn't it even more required when people rating themselves experts, commits elementary blunders? Especially the ones who think a bit of ingenuity is all they need, but where the structural approach is lacking somewhat to be desired ... you can usually spot them on starved and inconsistent specs.

http://www.joelonsoftware.com/items/2007/06/07.html

Be very cautious when deciding to use specialized techniques in your solution. If they seem to require a lot of complicated coding, or manipulate FileMaker into doing something completely outside the database realm, you may be better off without them. If they add a slick feature to your database, but don’t really provide a significant functional advantage, pass them by.

Thats an even worse kind of experts who occationally provides such solutions, because there is nothing that can restrain them from doing so.

I do usually get moderated by sysops, when I complain about such behaviour, where developers who exhibit such a readyness with quick fixes to every thing, like the shopkeeper in a hardwarestore showing no interest in teaching structured approaches or letting the "customer" off the hook and send them elsewhere.

All right it can even be tempting for me once and a while, but couldn't we agree on stopping each other when getting carried away???

--sd

Edited by Guest

Isn't it even more required when people rating themselves experts, commits elementary blunders?

Yeah, that's why I tend not to rate my self as anything.

I'm an expert in some things on some days with some problems, and equivalently a novice on other things on other days with other problems.

Edited by Guest

  • Author
  • Newbies

thank you all for you help it works great

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.