drosenkranz
Programmer
I am using a form with a <Delete> command button with the following code in cmdDelete's Click Event:
iResponse = MESSAGEBOX("Are You Sure You Want To Delete This Record ?",36,"Warning:"
*
IF iResponse = 7 then
* Answered No
RETURN
ELSE
* Answered Yes: iResonse = 6
DELETE Next 1
TABLEUPDATE(0)
THISFORM.RELEASE
ENDIF
With or without the TABLEUPDATE(0) statement included, the record on my form is not being marked for deletion in the table.
I'm using optimistic row buffering on the table in my dataenvironment. The form's text boxes have control sources which are linked directly to the fields.
Why doesn't the record get marked for deletion?
The 2nd mouse gets the cheese.
iResponse = MESSAGEBOX("Are You Sure You Want To Delete This Record ?",36,"Warning:"
*
IF iResponse = 7 then
* Answered No
RETURN
ELSE
* Answered Yes: iResonse = 6
DELETE Next 1
TABLEUPDATE(0)
THISFORM.RELEASE
ENDIF
With or without the TABLEUPDATE(0) statement included, the record on my form is not being marked for deletion in the table.
I'm using optimistic row buffering on the table in my dataenvironment. The form's text boxes have control sources which are linked directly to the fields.
Why doesn't the record get marked for deletion?
The 2nd mouse gets the cheese.