Jump to content

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

Recommended Posts

Posted

I have a date field, Date, I want to be filled in with todays date if someone fill in a name in another field, Name. To do this I have made a calculation with one If case

code:


If( Name <> ""; Today; "")

This worked when I had the date in a text field but now, when I changed it to a date field, it don't understand what to put in the field if there is no name in Name. If there is no name FM puts a "?" in the field. This most be because "" is a text command, but how do I do to say no date?

//Henkan

Posted

Thank's Andy!

It was the last part TextToDate("") that fixed it.

I still use the Today function, is there any perticular reason that I should use the Status(CurrentDate) function instead? Is that function better in any way?

//Henkan

Posted

The today function was from an older version.

status(currentdate) is more stable. Better to use this i have found.

glad that it works ok though.

always happy to help

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