Requery & Focus of a Hidden Form

mlr

Registered User.
Local time
Today, 02:29
Joined
Feb 26, 2011
Messages
16
On Command Button [Update] = Requery + unhide Form1 then Close Form2:

How to I set the focus of form1 [FA003].Field to match that of form2’s [FA004].field?

Please see attached.

Thank you
Mark
 

Attachments

  • MSAq002.jpg
    MSAq002.jpg
    99.7 KB · Views: 118
Found the solution, thanks to vbaInet's post:

Code:
    Dim pos As Long
    
    pos = Parent!SubformName.CurrentRecord
    Parent!SubformName.Requery
    Parent!SubformName.Form.Recordset.Move pos

Kind Regards
Mark
 

Users who are viewing this thread

Back
Top Bottom