Before Delete issue (1 Viewer)

reglarh

Registered User.
Local time
Yesterday, 23:43
Joined
Feb 10, 2014
Messages
118
I have a subform with multiple line entries. When highlighting one entry and pressing 'Delete', Access asks to confirm the deletion. However, the displayed details have been cleared. They are reinstated in the 'No' option is clicked, but how can I stop the displayed data being cleared first. It makes confirming the deletion more difficult since I canot check that the correct entry is being deleted without reinstating it first.
 

Minty

AWF VIP
Local time
Today, 07:43
Joined
Jul 26, 2013
Messages
10,371
That's inbuilt access behaviour, assuming you mean right click and select delete from the options?

The only way around that would be to disable deletions and then code a cmd button to do the delete for you with a coded message box confirmation.
 

reglarh

Registered User.
Local time
Yesterday, 23:43
Joined
Feb 10, 2014
Messages
118
The user uses the delete key, but I am not sure that this difference matters.

Is there no way of redisplaying the missing data before answering the deletion confirmation message?
 

jdraw

Super Moderator
Staff member
Local time
Today, 02:43
Joined
Jan 23, 2006
Messages
15,379
You may find more info in this post

As Minty suggested, developers often add a command button for Delete (and other actions) then use the click event to perform the logic you want (confirmation before actual deletion).

Additional info here.
 

Users who are viewing this thread

Top Bottom