Set form's recordsource

G

Guest

I am creating a SQL statement on a form. I want to use this as the
recordsource for opening another form. I am using the following statement:
Forms!frmName.RecordSource = sSQL. How do I get frmName to open with sSQL as
the recordsource?

TIA,

Kim
 
D

Douglas J. Steele

The form must be open before you can change any of its properties.

You have the option of opening the form in Design view, setting the
RecordSource and then opening it in Normal view.
 
G

Guest

Thanks! That works great.

Kim

Douglas J. Steele said:
The form must be open before you can change any of its properties.

You have the option of opening the form in Design view, setting the
RecordSource and then opening it in Normal view.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top