March 12, 200817 yr Hi everyone. Currently i got BeginDate as timestamp, i want to create a report searching based on BeginDate, but because it's timestamp, brings me all, i guess i got to use a wildcard, but im not sure how. i have: enter find mode set field [Cajas::BeginDate;GetAsText(tempvars::BeginDate) &"..."&GetAsText(tempvars::EndDate)] perform find. how should i use the wildcard? do i have to convert the timestamp to a date, and then search? thanks
March 12, 200817 yr You probably first need to break up your timestamp into date and time fields/data seperately . . . try create another calculation field using : LeftWords ( Timestamp ; 1 ). This should give you back just the date, then your idea of entering find and setting this new field with the START and '. . .' and END should work.
March 12, 200817 yr Are tempvars::BeginDate and tempvars::EndDate global fields? If not then set them to globals, or capture the data into variable prior to entering find mode.
March 12, 200817 yr Author ok, i break up, my timestamp into date, and apparently, it's correct but when i do the find, still brings me all.... also the tempvars::begindate and enddate are globals.
March 12, 200817 yr I believe it breaks because it is specified as GetAsText(). FM can't find a date or timestamp that way. If you have two global date fields, you can simply enter the dates so: Enter Find Mode [ ] Set Field [ BeginDate ; gBeginDate & ".." & gEndDate Perform Find [ ] FileMaker will insert the *:*:* for the time automatically.
March 12, 200817 yr The GetAsText() is unnecessary, but it should work with it too. At least it does so with 8.5, so the problem is likely to be something else. Which version introduced wildcards?
March 12, 200817 yr Can you put a pause just before Perform Find [ ], and report what you get as the find criteria?
March 12, 200817 yr Wildcards were introduced in vs. 8 and I tested using vs. 8. But if the operating systems changed then GetAsText() won't necessarily work. I thought it was unreliable even with time settings. Sorry if I might have mislead here! Hey John! Maybe it's the moon!
March 12, 200817 yr Oh, I think the GetAstext() should definitely be removed. I'm just not convinced it is the cause of the current problem. But we should know soon.
March 13, 200817 yr Author i put a show custom dialog, and it's breaking correctly the BeginDate(timestamp) but, for some reason doesn't find me what i want
March 13, 200817 yr It should work as expected if those fields are global. Try reindexing your tiemstamp field.
Create an account or sign in to comment