By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,479 Members | 988 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,479 IT Pros & Developers. It's quick & easy.

Dynamic SubForm Rowsource

P: 26
Hi,

I need to set the rowsource dynamically by passing a query to a subform, when a button in the main form is clicked.

Pls assist.
Thanks & Regards,

Ruth.
Dec 5 '06 #1
Share this Question
Share on Google+
3 Replies


MMcCarthy
Expert Mod 10K+
P: 14,534
Hi,

I need to set the rowsource dynamically by passing a query to a subform, when a button in the main form is clicked.

Pls assist.
Thanks & Regards,

Ruth.
I assume you mean the record source for the subform.

Expand|Select|Wrap|Line Numbers
  1. Me.SubformObjectName.Form.RecordSource = "SELECT ...;"
If you meant the row source of a combo or list box then.

Expand|Select|Wrap|Line Numbers
  1. Forms![SubformObjectName].Form!boxName.RowSource = "SELECT ...;"
Mary
Dec 5 '06 #2

P: 26
Thank You.

Regards,
Ruth.
Dec 6 '06 #3

MMcCarthy
Expert Mod 10K+
P: 14,534
Thank You.

Regards,
Ruth.
You're welcome Ruth.
Dec 6 '06 #4

Post your reply

Sign in to post your reply or Sign up for a free account.