M.A Posted July 16, 2004 Posted July 16, 2004 Hi Everyone! I have two global fields of type 'date', that are used to input two dates from the user. I needed a script that will take these two dates and perform a find operation so that I get all the records within these date ranges inputted by the user. The problem I am running to is that I am not able to put "field1...field2" in the date field in find mode. Thanks
-Queue- Posted July 16, 2004 Posted July 16, 2004 You have to use Insert Calculated Result, not Set Field.
M.A Posted July 16, 2004 Author Posted July 16, 2004 I am using 'Insert Calculated Result". My calculation is -> SearchDate1 & "..." & SearchDate2 But it is putting strange numbers like "731774...731778" into the date field.
-Queue- Posted July 17, 2004 Posted July 17, 2004 Did you read the link? You need DateToText(datefield) as well. Dates are internally stored as numbers and must be converted to text in versions lower than 7.
M.A Posted July 17, 2004 Author Posted July 17, 2004 Found the solution (by Audiofreak) after searching some more b4 I would give up, in the forums. The soution was that the dates had to be first turned into text, using the function dateToText(). so, my calculation will be dateToText(searchDate1) & "..." & dateToText(SearchDate2) This worked. Thanks! The url for that thread is: http://www.fmforums.com/threads/showflat...=true#Post98713
Recommended Posts
This topic is 7434 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