What is wrong?

S

Stanko Milosev

For this:

[Forms]![frmPretragaPoLekovima]![sfrmPretragaPoLeku]. _
[Form]![sfrmLekPretraga].Form.RecordSource = strSql

I get this error:

"You entered an expression that has an invalid reference to the property
Form/Report."

Does anyone know why?

sfrmPretragaPoLeku is subform inside form frmPretragaPoLeku, and
sfrmLekPretraga is subform inside subform sfrmPretragaPoLeku.
 
J

John Vinson

For this:

[Forms]![frmPretragaPoLekovima]![sfrmPretragaPoLeku]. _
[Form]![sfrmLekPretraga].Form.RecordSource = strSql

I get this error:

"You entered an expression that has an invalid reference to the property
Form/Report."

Try putting the reference all on one line (it doesn't matter if it
scrolls off to the right); also - and probably more likely - be aware
that the subform reference must be to the Name property *of the
Subform control*, not to the name of the Form object within that
control.
 

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