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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Querying a subform

Status
Not open for further replies.

AT76

Technical User
Apr 14, 2005
460
US
Hi all,

Is is possible to do a:

Forms!MainForm.SubForm.Form.RecordSource = "SELECT ...

where the source of the query is a query not a table?

I'm trying to run this but I keep getting the following error message:

Run-time error: 424, Object Required.

Thanks!!
 
Yes, it is possible. You may have the names of the controls wrong.

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
The most likeky error:
Forms!MainForm[!]![SubForm control][/!].Form.RecordSource = "SELECT ...

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top