faada Posted July 9, 2004 Posted July 9, 2004 I'm trying to print a report to include records in a range of dates in the "Send Date" field. Ideally I'd like the report to be for the week ending xx/xx/xxxx. Barring that, I'd like to have the user input the beginning and ending dates manually and perform a find based on the user input. I have set up a screen for the user to enter the date range like this "xx/xx/xxx...xx/xx/xxxx" but would like to find a tighter way of doing this as it is not intuitive and requires the user to be trained in what format to enter the date range in.
-Queue- Posted July 9, 2004 Posted July 9, 2004 Have the user input the week ending date into a global date field, then Enter Find Mode [ ] Go to Layout [one with Send Date on it] Insert Calculated Result [send Date; DateToText(gdate - 6) & "..." & DateToText(gdate)] Perform Find [ ] This is, of course, assuming the end of the week is Saturday.
faada Posted July 9, 2004 Author Posted July 9, 2004 aack! So simple I should have thought of it!! Just one thing, DateToText is not available in FMPRO7 (as far as I can see), however this worked: Insert Calculated Result [send Date; gdate - 6 & "..." & gdate] Thanks so much for the help!
-Queue- Posted July 9, 2004 Posted July 9, 2004 Ack! I meant GetAsText. DateToText is usually required when searching for a range. I wonder if that's changed in FM7?
-Queue- Posted July 12, 2004 Posted July 12, 2004 I just tested Set Field [table::datefield, table::globalDate1 & "..." & table::globalDate2] and it worked! Apparently Insert Calculated Result and GetAsText are no longer required for finding date ranges.
Recommended Posts
This topic is 7700 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