R
ragtopcaddy via AccessMonster.com
I have a subform whose recordsource is a query that refers to controls on its
parent form.
If I open this subform from design view, it requests the parameters (values
in controls) in the parent form. This is to be expected, as I'm opening the
subform by itself and the controls referred to are not present.
When I open the parent form with the subform, I don't get the parameter
requests.
However, the parent form is itself a subform. When I open the parent of the
parent form, I get the same parameter requests that I got when I attempted to
open the subform by itself.
Here's the SQL:
SELECT "PE Factors" AS Source,
IIf(IsNull([Forms]![sfrmPortfolioTrades]![txtStart]),
[Forms]![sfrmPortfolioTrades]![DoV],
[Forms]![sfrmPortfolioTrades]![txtStart]) AS dtStart,
Format([VarFactor],"0.000000") AS VarFctr,
Format([06],"0.000000") AS TB01,
Format([06],"0.000000") AS TB02,
Format([06],"0.000000") AS TB03
FROM tblPEFactorsPF;
The parameters requested are "txtStart" and "DOV"
Thanks,
Bill R
--
Bill Reed
"If you can't laugh at yourself, laugh at somebody else"
Message posted via AccessMonster.com
parent form.
If I open this subform from design view, it requests the parameters (values
in controls) in the parent form. This is to be expected, as I'm opening the
subform by itself and the controls referred to are not present.
When I open the parent form with the subform, I don't get the parameter
requests.
However, the parent form is itself a subform. When I open the parent of the
parent form, I get the same parameter requests that I got when I attempted to
open the subform by itself.
Here's the SQL:
SELECT "PE Factors" AS Source,
IIf(IsNull([Forms]![sfrmPortfolioTrades]![txtStart]),
[Forms]![sfrmPortfolioTrades]![DoV],
[Forms]![sfrmPortfolioTrades]![txtStart]) AS dtStart,
Format([VarFactor],"0.000000") AS VarFctr,
Format([06],"0.000000") AS TB01,
Format([06],"0.000000") AS TB02,
Format([06],"0.000000") AS TB03
FROM tblPEFactorsPF;
The parameters requested are "txtStart" and "DOV"
Thanks,
Bill R
--
Bill Reed
"If you can't laugh at yourself, laugh at somebody else"
Message posted via AccessMonster.com