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

Recommended Posts

Posted

Good morning all,

 

I have to do an import of data into FMP, but the field we are 'matching' to is configured differently than FMP.

 

EmployeeID from the CSV file we are importing is a 6 character field, where the employee ID itself is actually 4 or 5 characters and any remaining empty values are prefixed with a 0.  Such as a 4 digit employee ID is shown as 001234 and a 5 digit employee ID is shown as 012345.

 

In our FMP database, the EmployeID is shown without any prefixed 0's.  So it is 1234 or 12345.

 

When importing, these don't match up.

 

I'd like to make a calculation in FMP called EmployeeIDConverted where if the EmployeeID in FMP is a 4 digits, it displays as 00xxxx (prefixed with two 0's) and if 5 digits, it displays as 0xxxxx (prefixed with one 0), so I can successfully match records for import.  I'm not exactly sure how to do this (tried a few ways, but didn't work).

 

Thank you in advance!

Posted
Would that be better to use?

 

IMHO, yes, for a number of reasons (none of them very significant, though). Still, it is the function designed specifically for the stated purpose. There is also a difference in how the 1,000,000th employee will be handled.

Posted

IMHO, yes, for a number of reasons (none of them very significant, though). Still, it is the function designed specifically for the stated purpose. There is also a difference in how the 1,000,000th employee will be handled.

 

Ah ok.  Could you recommend what I should put for the calculation?  I'm not sure how to use the SerialIncrement() function.

Posted
SerialIncrement ( "000000" ; EmployeeID )

BTW, earlier you said:

 

In our FMP database, the EmployeID is shown without any prefixed 0's.  So it is 1234 or 12345.

 

 

Why don't you simply strip the leading zeros from the imported values, instead of padding yours?

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