steigrafx Posted January 27, 2013 Posted January 27, 2013 I have a database with a date field called "Received". By default, my users need only see the last six months of records, only occasionally needing to see beyond that. I can't figure out how to script this find. I intend to use it in my startup script -- unless there's a better way. I've Googled it and nothing seems to work as I was hoping. I am using FileMaker Pro 11 Advanced. Any help would be appreciated. Thanks! Kevin
comment Posted January 27, 2013 Posted January 27, 2013 I have a database with a date field called "Received". By default, my users need only see the last six months of records, only occasionally needing to see beyond that. I can't figure out how to script this find. Try: Go to Layout [ YourTable ] Enter Find Mode [] Set Field [ YourTable::Received ; ">" & Get ( CurrentDate ) - 180 ] Perform Find [] The 180 days is an approximation, of course. You can calculate the date more accurately by = Let ( today = Get ( CurrentDate ) ; Date ( Month ( today ) - 6 ; Day ( today ) ; Year ( today ) ) )
steigrafx Posted January 27, 2013 Author Posted January 27, 2013 Thank you, comment, it works like a charm. It didn't need to be exactly six months, so 180 days works fine. Kevin
Recommended Posts
This topic is 4710 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