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 8466 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi:

In my FileMaker Pro 5.5 database, I have a Date field named "A" and a calculation Field named "B" which is calculated by (int)((Today - A)/7). Now I'm generating a data entry form, the user shall type in a Date in "A", then I'll return a page with the calculated result in "B" field, how can I do it using CDML?

Thanks in advance!

Catty

Posted

First thing, replace the Today function with Status (CurrentDate). Todat only calculates when the database is first opened: if it's left running continuously on a server the Today function won't update.

To get the calculation to display, just put the [FMP-Field: B] code on the format file specified in the -format tag.

[ November 26, 2001: Message edited by: Vaughan ]

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