Jump to content

Date Range Finds


BernieR

This topic is 7007 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Allow User Abort [Off]

Set Error Capture [On]

Enter Find Mode [ ]

Set Field [datefield; Let( T = Get(CurrentDate); Date( Month(T); Day(T); Year(T) - 3 ) )]

Perform Find [ ]

If [not Get(FoundCount)]

Show Custom Dialog ["No records for that date exist."]

End If

Or create an unstored calculation date field of Let( T = Get(CurrentDate); Date( Month(T); Day(T); Year(T) - 3 ) ) and a relationship from this field to your date field. Then a script like

If [isEmpty(relationship::serial)]

Show Custom Dialog ["No records for that date exist."

Else

Go to Related Record [show only related; "relationship"]

End If

Link to comment
Share on other sites

  • Newbies

It worked - thanks a million!

Is there any good resource for scipts that give examples? I used to do a bit of Visual Basic but it's been a while...there's lots of other parts to this project I want to put together in one script. Thanks for your help!

Link to comment
Share on other sites

This topic is 7007 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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