A
Annie
Hi. I know requery is pretty basic, but I can't figure
out how to do this.
I have a subform MemberNumber that I'm using to display
the member count. The unbound form is Statistics and I
have no link between the subform and form (Link Child
Fields and Link Master Fields are blank). Is this setup
OK?
I add an Member(on the Individuals form). I want
the Statistics form, MemberNumber subform to increment by
one. So I need to tell MemberNumber that Individuals has
increased: Forms!Individuals.Requery - that makes sense
to me.
The part I'm not getting is where to put the code.
I don't think I want Individuals to requery itself.
So that means I'd want the code to be in MemberNumber.
However, MemberNumber subform only has On Enter and On
Exit. So I tried the code on Statistics:
Private Sub Form_AfterUpdate()
Forms!Individuals.Requery
End Sub
which doesn't work and doesn't make sense to me as the
Statistics form (or MemberNumber subform for that matter)
isn't updating (it's Individuals that is).
I realize that this is basic, but I'm not getting it. I
appreciate the details...
Thanks for your help, Annie
out how to do this.
I have a subform MemberNumber that I'm using to display
the member count. The unbound form is Statistics and I
have no link between the subform and form (Link Child
Fields and Link Master Fields are blank). Is this setup
OK?
I add an Member(on the Individuals form). I want
the Statistics form, MemberNumber subform to increment by
one. So I need to tell MemberNumber that Individuals has
increased: Forms!Individuals.Requery - that makes sense
to me.
The part I'm not getting is where to put the code.
I don't think I want Individuals to requery itself.
So that means I'd want the code to be in MemberNumber.
However, MemberNumber subform only has On Enter and On
Exit. So I tried the code on Statistics:
Private Sub Form_AfterUpdate()
Forms!Individuals.Requery
End Sub
which doesn't work and doesn't make sense to me as the
Statistics form (or MemberNumber subform for that matter)
isn't updating (it's Individuals that is).
I realize that this is basic, but I'm not getting it. I
appreciate the details...
Thanks for your help, Annie