November 22, 200223 yr Hi, In my serialized database, I have created a delete script that will delete a record only if it is the last record in the database, using Status(CurrentRecordCount). That is all fine and dandy. My problem crops up when I add a new record after deleting the last one. The serial field in new record is now not continuous. i.e. there is a gap for the deleted record. eg: I have 48 records. I now add a new record (#49). I then decide that I don't want to add a new record and delete it. So, I still have 48 records. At a later stage I add a new record. But now the number of the new record is #50 while I still have only 49 records. I tried to incorporate the replace field function, with update serial option in my delete script, but it doesn't seem to work. Is there any other way to do this?? Many Thanks Indy
November 22, 200223 yr Try using the set Next Serial Value script step. You should be able to use this to determine what is the next value you would want to use if a record is deleted. John
November 23, 200223 yr Author Thanks. I was using FMP 5.0 and the next serial value function isn't in it. Anyway, upgraded to 6.0 and it works fine with the new function.
Create an account or sign in to comment