skingjack2 Posted June 17, 2013 Posted June 17, 2013 Hi, Likely a stupid question but I'm having issues with it the nonetheless; I'm looking to create a script that generates a list of upcoming events based on a future date "start_date"; my thoughts are that this script should generate what I'm looking for however it is providing unexpected results (finding past dates not future). Go to layout x Set error capture on Enter find mode Set field [jobs_id::start_date; Jobs_ID::start_date & " >" & Get ( CurrentDate )] Perform Find [restore] Sort records [no dialog] Go to layout y View as {view as list] Calculated result is a date. I can perform a find manually and get the proper results but not by script. Any thoughts on what I may be overlooking? Jack
webko Posted June 17, 2013 Posted June 17, 2013 I think your Set Field is wrong... Seems to try and set it to the value of the field and then > current date? Also, exactly what is then restored from the Perform Find? Try a Ctrl + R after the script has run to see what it's trying to do...
doughemi Posted June 17, 2013 Posted June 17, 2013 Try Set field [jobs_id::start_date; " >" & Get ( CurrentDate )]
Recommended Posts
This topic is 4177 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