Board index » delphi » Delete not deleting
P.S.Bell
![]() Delphi Developer |
Fri, 04 Apr 2003 03:00:00 GMT
Delete not deleting
To prevent garbage data being displayed when tables are first
opened before new records are started I want to clear out 'orphan' records from detail tables. These have an integer field as part of a composite index. If this particular field is 0 or null then I want to delete it. I open only the detail table but the following code seems to do nothing, even though in tooltips tell me that the value is indeed zero. There is no code in the OnDelete event and there is no further detail table. if not dm.InsRepItems.Active then Begin I would expect this code to check the first record in the table, I have plugged the gap that caused the creation of such records Pat Bell |