B
Biecci
I have a form (which consist of 2 subforms), created from a query, and I
have a button that prints a report using the data from the query behind
the forms.
I need to tell the report to only use the records that are
currently active on the form and the 2 subforms. but seems not be making
any headway. I already tried the solution given to "Wayne" i.e
".........
If Me.Dirty Then 'Save any changes.
Me.Dirty = False
End If
If Me.NewRecord Then
MsgBox "Select/enter a record to print."
Else
strProg = "[ProjectID] = " & Me.[ProjectID]
DoCmd.OpenReport "Conversation Summary", acViewPreview,
, strProg
End If
End Sub
.............."
but got "Enter Parameter value" dialog box.
Can anyone please help me out?
Thanks
have a button that prints a report using the data from the query behind
the forms.
I need to tell the report to only use the records that are
currently active on the form and the 2 subforms. but seems not be making
any headway. I already tried the solution given to "Wayne" i.e
".........
If Me.Dirty Then 'Save any changes.
Me.Dirty = False
End If
If Me.NewRecord Then
MsgBox "Select/enter a record to print."
Else
strProg = "[ProjectID] = " & Me.[ProjectID]
DoCmd.OpenReport "Conversation Summary", acViewPreview,
, strProg
End If
End Sub
.............."
but got "Enter Parameter value" dialog box.
Can anyone please help me out?
Thanks