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!

SubForm Delete Grid Line - Refresh Form Item

Status
Not open for further replies.

smedvid

MIS
May 28, 1999
1,228
US
I have a form with a subform. The subform has detail records for payments. On the form I have a total field that sums the subform payments. Everything works fine, when users enter a value into the subform I execute a requery (onUpdate) on the total field and it works great. the one hole is when a user deletes a record from the sub-form, I can not figure out how to requery the Total field on the form. Should be simple, but it is Friday and it has been a long week.. tia... Steve Medvid
"IT Consultant & Web Master"
 
Try

Me.Refresh

Or if it dont work refresh from the SubForm like this

[Forms]![YourMainForm].Form.Refresh

Or use both in the SubForm

Me.Refresh
[Forms]![YourMainForm].Form.Refresh

Hope it helps
Best Regards

---
JoaoTL
mail@jtl.co.pt
My MS Access Site:
 
I am using Me.Parent....Refresh and it seems to work everywhere... I'll try the other notation format. Thanks... Steve Medvid
"IT Consultant & Web Master"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top