cul8ter Posted October 22, 2006 Posted October 22, 2006 I have created a Script that allows me to see who's payment is due today, Perform Find[] Specify, // next payment due date. How can I subtract a specific number of days from the current date?
jteich Posted October 22, 2006 Posted October 22, 2006 date - 3 date fields are numbers counting days. -jens
Lee Smith Posted October 22, 2006 Posted October 22, 2006 You need to create a script to do this. Enter Find Mode [ ] Set Field [ YourTO"::YourDateField; Get ( CurrentDate ) -3 ] Perform Find [ ] HTH Lee
cul8ter Posted October 23, 2006 Author Posted October 23, 2006 Thank you, that was easy for me to set up. beats the heck out of scrolling through 500 records.
cul8ter Posted October 25, 2006 Author Posted October 25, 2006 OK, this works well Enter Find Mode [ ] Set Field [ YourTO"::YourDateField; Get ( CurrentDate ) -3 ] Perform Find [ ] But I need to be able to also view the current date, one day back and 2 days back and 3days back. Just by using the scroll wheel on my mouse to look at all these days. Can this be done within this same script?
comment Posted October 25, 2006 Posted October 25, 2006 Set the field to: Get ( CurrentDate ) - 3 & ".." & Get ( CurrentDate )
Lee Smith Posted October 25, 2006 Posted October 25, 2006 Try this and see it works for you. Enter Find Mode [ ] Set Field [ YourTO::YourDate; Get ( CurrentDate ) -3 & "..." & Get ( CurrentDate ) -1 ] Perform Find [ ] HTH Lee
cul8ter Posted October 25, 2006 Author Posted October 25, 2006 Thanks, it did not need the -1 on the end took that off and it worked perfect. to cool. Thanks Again
Recommended Posts
This topic is 6665 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