goto record

  • Thread starter Thread starter Florin
  • Start date Start date
F

Florin

Hi,

In a form I have a command button for a change one record in a subform:

"Me.subform_name.Requery" -> is ok

After that, I use
"DoCmd.GoToRecord , "subform_name", acFirst"

for go to the first record in that subform, but I get an error
"Run time error 2489
The object 'subform_name' isn't open"

Where is the problem?

Thank
Florin
 
You have to set the focus to the subform control name.

Me.SubformControlName.Setfocus
DoCmd.GoToRecord , , acFirst
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top