Walter Meester
HoogkarspelNetherlands
General information
Category:
Forms & Form designer
>What happens is that the DELETE command fails saying that the record is in use by another user -- But this is a temporary cursor that I created and am the only one using -- I don't understand how the record/file could be "locked" by another user.
Yeah, i admit this is a nasty one. I think that if you get the focus off the Grid before you delete the record, might solve your problem:
THISFORM.SomeTextBox.SetFocus
DELETE
THISFORM.Grid.Setfocus
Simular trouble occurs when your cursor is positioned in the grid, in a field with a validation and you try to insert a record.
I would recommend alway to get the focus of the grid when Appending or deleting records.
Hope this helps.
Walter,
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only