AndrewMozley
Programmer
When I am running a form which lets the user browse and perhaps update a table I usually work with SET DELETED ON, because the user is not normally interested in deleted records which may well vanish when the table is re-organised.
However if he wishes to add a record for a code which already exists but has been deleted, this may cause an error, if the table does not allow two records which have the same code; I suppose that in this case I could undelete the original record and use that.
It is rather fiddly to have to include the code to change the SET DELETED status when the user wishes to add a record, check for the deleted record, use that if the deleted record exists, otherwise APPEND or INSERT a record.
How do other programmers come with this matter (or do they just design their tables better / differently).
Thanks. Andrew
However if he wishes to add a record for a code which already exists but has been deleted, this may cause an error, if the table does not allow two records which have the same code; I suppose that in this case I could undelete the original record and use that.
It is rather fiddly to have to include the code to change the SET DELETED status when the user wishes to add a record, check for the deleted record, use that if the deleted record exists, otherwise APPEND or INSERT a record.
How do other programmers come with this matter (or do they just design their tables better / differently).
Thanks. Andrew