Set form's recordsource

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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.
 
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.
 
Back
Top