DanBrill Posted July 28, 2003 Posted July 28, 2003 Hi, I have a page where users enter search criteria as global fields. When they execute the search I'm using a script to enter the Find mode, and then using the SetField script step to set the values of the fields to the values they entered in the global fields. This works fine except for date fields. I want the user to be able to set the field as a single date or as a date range, such as 1/1/1970 ... 1/1/1980. If I set the global as a date field, it won't let me enter date ranges. If I set it as a text field I can, but then it doesn't find the date properly. I'm using the TextToDate function with the SetField step. Any thoughts? Thanks, Dan
kenneth2k1 Posted July 28, 2003 Posted July 28, 2003 When using date fields in calcs, you'll want to use Insert Calculated Result [ ] instead of Set Field [ ]. Make sure that you switch to a layout that has the date field on it in order for it to work. This is just a quick reply. If you still have problems, I can get the exact calc if you give the names of your fields. Ken
DanBrill Posted July 29, 2003 Author Posted July 29, 2003 Thanks, that does it. Bit of a hassle having to be on a layout with that field, but easy enough to fix. Thanks again, Dan
Recommended Posts
This topic is 7787 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