Requery unbound textbox

A

alex

Requery unbound textbox

Using Access ’03…

I have a form with two subforms.

One of the subforms is set to datasheet view and users can delete
records from this subform (right-click from shortcut menu). My
problem is that when they do, my textbox on the main form will not
requery (it keeps a count of hours).

Strangely, when I modify a record on this datasheet subform (and then
move to another record) my textbox will requery.

My code is in the after_update event of the subform…it’s like the
deletion of a record is not triggering the event.

The code is:
Forms!frmHours!txtHours.Requery

Any thoughts?
alex
 
A

alex

PS:  for deletions put the code in the subforms' AfterDelConfirm event
procedure.

Ken Sheridan
Stafford, England

Worked like a charm Ken.
Thank-you very much!
alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Requery a background form 2
Display subform total 1
Requery subform 2
Subform Requery Criteria 1
Count sfrm records 2
Change Calc Control Value 4
Refresh unbound textbox 5
Sync two subforms 1

Top