Jump to content
Salesforce and other SMB Solutions are coming soon. ×

Conversion of Text Date and Calculation of Age.


Nasho23
 Share

Recommended Posts

I am using FMPro 11 Adv with Win 7 64bit OS. I have a Test Table (TEST AGE ROTA) with these Fields - Name, BirthDate (Date), Deceased (Text), DeathDate (Number) and Age (Numeric).

Deceased Field is Text, because my source material from Descendants of Rats of Tobruk, in many, but not all cases, is ../../1979 or ../05/1956.

Because I am a Novice and know nothing about Coding for Calculation Expressions and Functions, may I ask, if someone could produce Code for me, to produce the results I need.

Using Table "TEST AGE ROTA", convert Deceased Dates to Number in DeathDate and then Calculate Age at Death in the Age Field, for those Records which have an entry in both, BirthDate and Deceased/DeathDate Fields. Those Records that have no BirthDate or no BirthDate + DeathDate, will return nothing. For those Records that have BirthDate, only, Age today will be calculated to CurrentDate.

Required to update the Table on Login on each new day.

When this Code is proven in the Test Table, I will then convert it to use in the Main Database of 7000+ Records, after Backup of File.

 

Many Thanks in anticipation, Owen Carlton

Link to comment
Share on other sites

This thread is quite old. Please start a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

Terms of Use