January 2, 201511 yr Newbies I have a database in FM Pro 11 made up of approx. 20 fields. New records / new information is constantly being added, but it is added in large batches by importing information from excel files. I use the import function that is built into Filemaker and I put no restrictions on importing: everything is imported even if it creates multiple duplicate records. The reason for this is that with each import I am often adding some new information that I donât want to lose, and I donât want to lose unique information already present with a record.  For example:  What I do want is that with each import, the script look at the Address, which is my unique identifier, and then APPEND any new information in Field 2, 3, or 4 without stripping Existing information. Imports are always taking place, and with each one, there may or may not be new information to be appended to a field. IF there is nothing to add, then the record should be skipped and left alone. Can someone help me write a script or scripts to accomplish this â if it is even possible?
January 2, 201511 yr Probably the easiest way to do this is to do the import in a "scratch" table and then loop through it and take the necessary bits and pieces and write them to the matching real record in their proper tables. That will give you much more flexibility than anything you can get from the import process alone.
January 2, 201511 yr Author Newbies I know nothing but very basic import function using the Filemaker menu. So far as scripts, I can write a simple FIND request and that's about it. Do you consult?
January 2, 201511 yr I would suggest you rethink your strategy - and your structure. You didn't say what your data is really about, but as a rule, compounding multiple values in a single field is not good practice. It sounds like you need to add another table, where each new value would create a new record.
January 2, 201511 yr I'm at a very basic level myself too, but I think that Wim is suggesting that you create a new table (with the same fields as your original table and import that data into that.) You need a unique identifier in both tables and probably in the spreadsheet too - so you know if you've actually got 3 John Smiths, or one that's been imported 3 times. (as far as I can tell, you don't have one, so you might need to use Filemakers serial number function in a new field in both tables. After that point, you'll need someone smarter than me to help you, but it's definitely possible. Cheers, Mike Sorry; replied at the same time as comment; but he's probably right!!
Create an account or sign in to comment