Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6098 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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.

Posted

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.

Posted

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.

Posted

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.

Posted

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?

Posted

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!

Posted

It should work as expected if those fields are global. Try reindexing your tiemstamp field.

This topic is 6098 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.