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

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

Recommended Posts

  • Newbies
Posted

I thought I used this piece of code successfully in a Filemaker 8.5 script, but I can't seem to get it to work in Filemaker 9.

I'm trying to flag records as being new (imported into the database that day).

If [Get (CurrentTime) = assets:creation_date]

Set Field [assets::status; "NEW"]

Else

Set Field [assets::status; ""]

End If

Where assets is the table with my records and creation_date is the record creation date.

I hit run and nothing happens. Any help would be appreciated.

--jon

Posted (edited)

Welcome to the forum.

If [Get (CurrentTime) = assets:creation_date]

Set Field [assets::status; "NEW"]

Else

Set Field [assets::status; ""]

End If

Don't you want:

If (assets:creation_date = Get ([color:red]CurrentDate)

Set Field [assets::status; "NEW"]

Else

Set Field [assets::status; ""]

End If

?

Edited by Guest
Posted

You could also make the status field an unstored calculation, and eliminate the flagging process (which is always problematic in a multi-user scenario) altogether.

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