battenberg
Burning candles both ends
- Local time
- Today, 14:39
- Joined
- Sep 25, 2006
- Messages
- 118
I have a report which contains a sub report,
I think i may be doing this all wrong...
My report opens via a command button using the following code:
I want to be able to filter the parent report and the sub Report using [ProjectRef] so that when the combination of the two reports open, both the parent form and the sub form are filtered using the same criteria.
Sureley there is a command which can be applied to the properties of the sub form,, so that it always follows the rules of the filter of it's parent... but I dont know what it is...!!!
Can anybody show me the jedi way of making this happen!
However, I may be going about this in totally the wrong way if so please advise...
Thankyou OB1
I think i may be doing this all wrong...
My report opens via a command button using the following code:
Code:
[ProjectRef].SetFocus
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "rptPre-Com"
stLinkCriteria = "[ProjectRef]=" & "'" & Me![ProjectRef] & "'"
DoCmd.OpenReport stDocName, acPreview, , stLinkCriteria
I want to be able to filter the parent report and the sub Report using [ProjectRef] so that when the combination of the two reports open, both the parent form and the sub form are filtered using the same criteria.
Sureley there is a command which can be applied to the properties of the sub form,, so that it always follows the rules of the filter of it's parent... but I dont know what it is...!!!
Can anybody show me the jedi way of making this happen!
However, I may be going about this in totally the wrong way if so please advise...
Thankyou OB1