Report extract from subform field

aattas

Registered User.
Local time
Today, 14:38
Joined
Dec 24, 2014
Messages
75
Hello,
I have a continuous subform in a main form and Im trying to produce a report to only accept if one of the field of the subform data (field) equals " active" .

How do write the code if i click the printing button.
 
the report query will view the item in the subform as the criteria....
select * from table where [id] = forms!myForm!subForm!form!txtBox
 
I think you will need to provide a bit more detailed explanation in order to get good advice! But if I understand your quesion, it will be something like this...

If Me.NameOfSubform!Field = "active" Then
DoCmd.OpenReport "YourReport"
End If
 

Users who are viewing this thread

Back
Top Bottom