Deterimining records selected for deletion

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to determine the number of records selected for deletion before the Delete Confirm dialog box is displayed

In single form view records will be selected by Select All Records and then Delete on edit menu or for one record just Delete Record on edit menu. In datasheet view records to be deleted will be highlighted and from edit menu Delete Record

Is there a property of the form that stores this information

Thanks for any assistance.
 
Try doing maths on the .seltop and .selheight properties of the active form

Note that these properties will not be correct if the focus has moved away
from the rows, such as would be the case if you were deleting using code
behind a button (since the focus has moved to the button). For this reason,
do the delete using code behind a menu pick or a command bar (or contrive to
remember the .seltop and .selheight in your module level globals - yuck).


--
Malcolm E. Cook
Stowers Institute for Medical Research


KC said:
I am trying to determine the number of records selected for deletion
before the Delete Confirm dialog box is displayed.
In single form view records will be selected by Select All Records and
then Delete on edit menu or for one record just Delete Record on edit menu.
In datasheet view records to be deleted will be highlighted and from edit
menu Delete Record.
 
Back
Top