Hello , I have a form , Form1 , in wich I can see the second record of a query.
I wrote this code : DoCmd.GoToRecord , , acGoTo, 2 at the OnOpen event and it works properly showing the second record of the query with an Autonumber field.
Now I made a new form , Form2 , from a different table , and Form1 as a subform ,
with this code : DoCmd.GoToRecord ,"Form1" , acGoTo, 2 .
But it doesn't works.
I get this message : Error 2489 , the object "Form2" is not open.
How can do this ?
Thank you very much!
I wrote this code : DoCmd.GoToRecord , , acGoTo, 2 at the OnOpen event and it works properly showing the second record of the query with an Autonumber field.
Now I made a new form , Form2 , from a different table , and Form1 as a subform ,
with this code : DoCmd.GoToRecord ,"Form1" , acGoTo, 2 .
But it doesn't works.
I get this message : Error 2489 , the object "Form2" is not open.
How can do this ?
Thank you very much!