Requery subform without losing place (1 Viewer)

evanscamman

Registered User.
Local time
Today, 13:38
Joined
Feb 25, 2007
Messages
274
I appear to have accidentally discovered something that may useful if anybody else can recreate it.

Requerying a subform by referring to the control on the parent form appears to requery without losing the current record or the selected control on the subform.

myForm!mySubForm.Requery - doesn't lose place
myform!mySubform.Form.Requery - does lose place.

Can anyone else confirm this behaviour?
Up until now I have had to use bookmarks, etc.. to return to place after a refresh.

Thank you,
Evan
 

HiTechCoach

Well-known member
Local time
Today, 15:38
Joined
Mar 6, 2006
Messages
4,357
Your code says requery. In you statement you say refresh. Did you mean requery?
 
Last edited:

evanscamman

Registered User.
Local time
Today, 13:38
Joined
Feb 25, 2007
Messages
274
Yes - i meant requery.
 

Users who are viewing this thread

Top Bottom