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

Can I do this - Unbound subform query driven

Status
Not open for further replies.

fileman1

Technical User
Feb 7, 2013
152
GB
I have a main form, onto which I dragged a subform. The subform is unbound, and is a continuous form.
The main form generates a query which I want to be the recordsource of the subform. Does not seem to work.

I was trying:

Code:
Forms![Copy of Mainform]!MainSubform.Form.RecordSource = MySql

[Forms]![Copy of Mainform]![MainSubform].Form.Requery
 
FYI, an unbound form has NO RecordSource (AFAIK)
 
Thanks Duane, my second line was to try and kick it into life.
Thanks PHV. I just tried a recordsource of a table, that woke up. So maybe I can fill a dummy table. I do not want to add or amend data, it's just a search reference form.
 
Thanks, yes, it currently fills a list box okay without any errors. I am going down the road of inserting into a table thinking that was my easy option.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top