Thanks for your response. This is long - apologies in advance. Holler if I'm not making sense.
Our existing system has all fields (both repeating & non-repeating) in a single file (QUOTES). Data is entered by hand. Each record receives a serial number (= Quote Number). Our procedures require that each quote number be carefully tracked. Gaps in sequence are not permitted, so we use the FM s/n function to assure accuracy.
Now we also have the same information being entered by the customer online, arriving as a single tab-separated text file, one file per request. Each tab-separated text file contains data for a single record, with multiple lines of data. Line 1 of the text file contains data to be imported into the non-repeating fields (name, address, email, etc).
Subsequent lines in the text file contain data to be imported into three repeating fields in the record.
(Desc, Qty, & Size). Each line of data contains info for one repetition of each of the 3 repeating fields.
My current solution is to bring the data into 2 files. First I import the text file into primary file (CUSTOMER) as new records with FM's s/n function giving each a record ID no. I can't figure out how to import just the first line of data from the text file, so the import creates multiple records when I only want one. The first record contains the unique information (Name, Address, etc) , the others contain data that ends up in the repeating fields (Desc, Qyt, & Size).
All but the first record - which contains the data for the non-repeating fields - are deleted. (This leaves desired info in a single record, but results in gaps in the record ID nos when additional files are imported.) I then copy the ID number for that record to the clipboard.
Next the same data is brought into a secondary file (ITEMS) as separate records. The ID number from the primary file (CUSTOMER) record is copied into each of these records. This time the first record in the new set is deleted, as it contains data intended for non-repeating fields.
We then view the information from the primary file (CUSTOMER)with a portal that links to records in the secondary file (ITEMS) using the record ID number. This mimics the repeating fields, but I still have the problem of getting the information into the original 'real' database (QUOTES) without manual cutting & pasting.
Ideally I'd like to bring in the text file into the original file (QUOTES), but I'd settle for a way to merge related records from CUSTOMER & ITEMS into a single record in QUOTES. This involves bringing data from non-repeating fields in multiple records into repeating fields in a single record.
Or if you can help me figure out a way to serialize the record IDs in my primary file CUSTOMER without gaps I could make that work too. The key is that the final ID number (quote numbers) MUST be sequential, unique, & have no gaps. One note - I can't trust those entering this information to check the ID numbers themselves. It must be automatic. And records will continue to be created by hand as well as from text files received from our web site.
Have I given you enough to thoroughly confuse you? Any ideas would be gratefully received. Maybe I'm too close to this to see a solution.
Thanks for your offer of help!
Kathryn