I have tried several onclick delete code. Now I want to try something new using some conditions as follows.
Perform delete action in the Edit or newRecord mode with the following defined conditions.
(a). If "IsNull or nothing" in text1(currentscreen), or text2(currentscreen) or text3(currentscreen),
then msgbox "Nothing to delete.
Else....
(b). If "Not Is Null" text1(currentscreen), or text2(currentscreen) or text3(currentscreen),
Then msgbox "Are you sure you want to delete the current record #111 (for example)
If User Response is "Yes" then perform the delete action for record id #111
If User Response is "No" then do not perform the delete action for record id #111