Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing subform record set on form instance

Status
Not open for further replies.

newfrontiers

Programmer
Oct 17, 2001
134
0
0
US
Hello. I'm spinning my wheels again on subforms. Ugh!

I am trying to set the recordset for a subform on an instance of a form.

I am using the context Me.subformname.Form.RecordSet but I keep getting an error that the object cannot be found. Is this because I am calling an instance of the form?

Is there a solution?

Thanks in advance.

 
If the code is really in the mainform:
Me![name of the CONTROL hosting the subform].Form.RecordSet

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
How are ya newfrontiers . . .

Is it your intent to refer to [blue]Recordset[/blue] or [blue]RecordSource?[/blue]

From the mainform ... reference would be:
Code:
[blue]   [[purple][B][I]subFormName[/I][/B][/purple]].Form.[purple][B][I]PropertyName[/I][/B][/purple][/blue]
[blue]Your Thoughts? . . .[/blue]

See Ya! . . . . . .

Be sure to see thread181-473997 [blue]Worthy Reading![/blue] [thumbsup2]
Also faq181-2886 [blue]Worthy Reading![/blue] [thumbsup2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top