Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Manual deletion of a row on a form 1

Status
Not open for further replies.

roofprog

Technical User
Oct 7, 2008
11
GB
Simple main form and sub-form where a total of a field on the subform is displayed on the main form.

This calculation and display works perfectly for inserting new rows or changing a field value on the sub-form. This is done using 'on dirty' vb code to requery the subform data and a simple clone record set addition to recalculate the total to be displayed on the main form.

However this does not work when a row on the subform is deleted and code is inserted on the 'on delete' event. I am unable to execute the subform requery of data as I get a runtime error 3709 'search key was not found in any record'.

Any ideas?
 
HAve you tried the Current event ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Thanks PH. the code now works correctly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top