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

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

Recommended Posts

Posted

Here are my fields:

"Date" is defined as a date field in File A

"gDate" is a global (date) field in File B

And this is what I'm trying to do:

Enter Find Mode []

Set Field ["Date", "">="&File B::gDate"]

Perform Find [Extend Found Set]

But I noticed that it instead inserts weird numbers with "/". What is the proper way to insert a " >= " in a date field?

Thanks,

Chard

Posted

Hi Chard,

I have *not* tested this, but I think you need to use the TextToDate in your Set Field:

Try

Set Field ["Date", "">=" & TextToDate B::gDate"]

HTH

Lee

smile.gif

Posted

Hi Lee!

Nope, I tried the TextToDate function and checked that all fields are date fields and the other is a global date field, but it just inserts a "?" in the date field in Find Mode. Any other ideas? I'm really stuck with this thing.

Chard laugh.gif

Posted

Just an update on my problem. I don't know why, but I tried this:

Insert Calculated Result ["Date", "">=" & DateToText(File B::gDate)"]

But it works for me!

Does this mean you can't use Set Field when using "&" in Find Mode?

Posted

This is where Insert Calculated Result comes in. Any time you're setting a field with an expression that doesn't exactly equal the field's format (mostly date and time fields) use Insert Calculated Result. This will not try to force the result into a date or time format, as Set Field will.

Insert Calculated Result [Date, ">=" & DateToText(gDate)]

or Insert Calculated Result [Date, ">" & DateToText(gDate - 1)]

Posted

Shot, I overlook that we were trying to set a date field. d-oh.gif

You can't use "Set Field" with a Date, it has to be Insert Calculated result. I tested this one and it seems to do what you want.

Go to Layout [original layout]

Enter Find Mode []

Insert Calculated Result [select,

This topic is 7438 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.