Thank you
I've been reading other threads and info on the web, but can't find a solution, so trying the gurus here.
I have a form with two sub-forms: FormA (subform control FormA_Subform) contains FormB and FormC (FormB_Subform FormC_Subform).
I want to display a specific record in FormC (DoCmd.SearchForRecord) when I click a record in Form B, but I keep on getting the error I mention in the title.
After some research, this is where I am:
I understand I need to place the focus on FormC, from FormB, before I can run DoCmd.SearchForRecord. Done using this code in FormB:
Me.Parent.SetFocus
Me.Parent!FormC_Subform.SetFocus
After this I've written:
DoCmd.SearchForRecord acDataForm, "FormC", acFirst, "[field]=condition".
But no luck. I've tried replacing FormC with FormC_Subform, Me.Parent!FormC, and Me.Parent!FormC_Subform, but it keeps on saying the object isn't open.
Thx for your help.
Leonel