Set form's recordsource

K

Kim

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.
 
K

Kim

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.
 
Top