C
Chrisso
Hi All
I have a query with a parameter [PN].
This works lovely when I run the query manually and enter a value for
[PN].
I have a main form with a PN value in a control - txtPN.
I now want to display a subform in this main form based on my query
with the [PN] parameter.
How do I configure the sub forms record source to take the [PN} from
the main form control?
I have tried on the subform:
Record Source: <my query>
Filter: [PN] = [Forms]![Main Form]![txtPN]
However when I view the main form I get the pop-up asking for [PN].
How do I make Access fill [PN] with the value in txtPN on my main
form?
Thanks in advance for any ideas,
Chrisso
I have a query with a parameter [PN].
This works lovely when I run the query manually and enter a value for
[PN].
I have a main form with a PN value in a control - txtPN.
I now want to display a subform in this main form based on my query
with the [PN] parameter.
How do I configure the sub forms record source to take the [PN} from
the main form control?
I have tried on the subform:
Record Source: <my query>
Filter: [PN] = [Forms]![Main Form]![txtPN]
However when I view the main form I get the pop-up asking for [PN].
How do I make Access fill [PN] with the value in txtPN on my main
form?
Thanks in advance for any ideas,
Chrisso