indyslim Posted November 22, 2002 Share Posted November 22, 2002 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 Link to comment Share on other sites More sharing options...
laker_42 Posted November 22, 2002 Share Posted November 22, 2002 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 Link to comment Share on other sites More sharing options...
indyslim Posted November 23, 2002 Author Share Posted November 23, 2002 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. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 7959 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 accountSign in
Already have an account? Sign in here.
Sign In Now