Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

Hi!

I have an invoice # that is the Date Created and a Company Code, eg: 032305HAG (where 032305 = today's date and HAG is company code for a particular client). To automatically insert this, I created a calculation:

Date Modified &""&ED Contacts::IN Code

However, what appears is some weird #: 732028HAG -- so the company code is going i correctly, but the Date Created is I don't know what - the # does correspond to the date somehow because it is different for a record from yesterday.

Does anyone know why this is doing this and how I should fix it - is there a better calculation?

Also, this is my first posting and I am an advanced basic user who has basically been using the guides that came with the program - what's the best book to buy to start helping me do more advancecd stuff (such as writing script)

THANKS!

Posted

Try this instead:

Filter ( GetAsText ( Date Modified ) ; "0123456789" )&ED Contacts::IN Code

The strange number you were getting is the internal numeric version of the date. The GetAsText converts it to text, and then the filter function removes the slashes separating the month day and year.

Posted

Thank you so much for replying!

I tried it, but it gives me the message: "Either an operator was ommitted, this function cannot be found, or "(" was not expected here"

Any thoughts?

Sarah

Posted

Oops, sorry, I gave you an FM 7 version formula. If you are using version 6 you will need to use this instead:

Substitute(DateToText(Date Modified),"/","")&ED Contacts::IN Code

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