Wayne0412 Posted February 26, 2011 Share Posted February 26, 2011 Hello, Can someone please please please help me. If I had hair I would be pulling it out right about now!!! I have a succesfuly written a script which constrains a set of data to one particular order type IE: Quote from four possible order types (Quote, Invoiced, Reservation and Hold). That part was easy. Now I want to further constrain that list to those orders that fall within a date range, specifically from Today's date to Today's date plus seven, basically omitting records which fall outside that date range. I need to be able to do this from within a script, with no user input, and without dialogue. Essentially what I am trying to do is produce six different reports from one set of master data and have the user press one button to populate and sort all of the reports. If I could get this date range thing sorted, the rest of the reports would be easy to do. Please help, I am desparate!! Cheers Link to comment Share on other sites More sharing options...
comment Posted February 26, 2011 Share Posted February 26, 2011 Try: Enter Find Mode [] Set Field [ YourTable::Datefield ; Get (CurrentDate) & "…" & Get (CurrentDate) + 7 ] Constrain Found Set [] Link to comment Share on other sites More sharing options...
Wayne0412 Posted February 26, 2011 Author Share Posted February 26, 2011 Try: Enter Find Mode [] Set Field [ YourTable::Datefield ; Get (CurrentDate) & "…" & Get (CurrentDate) + 7 ] Constrain Found Set [] Brilliant, works like a dream, thank you so much. I spent about six hours trying to get that to work!!! Link to comment Share on other sites More sharing options...
comment Posted February 26, 2011 Share Posted February 26, 2011 It's all here: http://www.filemaker.com/11help/html/find_sort.5.8.html#1028153 Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 4807 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