Refreshing a main form

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

Guest

Hi,
I want to know what's the code that i should write in the Afterupdated
event of a textbox placed in a subform called "expenses" in order to refresh
the parent form (called "Operations").
I want to refresh the main form with its subfioms...
Can anybody help?

Regards
 
Me.Parent.Refresh

or

Me.Parent.Requery

depending upon the circumstances. Requerying starts the recordset at the
beginning. You may also want to save the record before doing either:

DoCmd.RunCommand acCmdSaveRecord

or better:

Me.Parent.Dirty = False
 
Back
Top