A
Arjan
All,
On page 1 of a tabcontrol there are project data fields (table project), on
the second page there is subform with project related documents (table
documents). This subform has a parent/childlink (projectID) which is in the
project table and in the documents table.
On the 3rd tabpage I have some buttons for reports. I use the below code to
preview the report. which should only give the related documents form the
project.
However it give the correct project data but not the related documents...
Private Sub Command134_Click()
'generate print preview.
DoCmd.OpenQuery "QueryDWG", , acReadOnly
DoCmd.OpenReport "Drawings", acViewPreview, , "ProjectID = " & Me.ProjectID
End Sub
What i'm I doing wrong?
On page 1 of a tabcontrol there are project data fields (table project), on
the second page there is subform with project related documents (table
documents). This subform has a parent/childlink (projectID) which is in the
project table and in the documents table.
On the 3rd tabpage I have some buttons for reports. I use the below code to
preview the report. which should only give the related documents form the
project.
However it give the correct project data but not the related documents...
Private Sub Command134_Click()
'generate print preview.
DoCmd.OpenQuery "QueryDWG", , acReadOnly
DoCmd.OpenReport "Drawings", acViewPreview, , "ProjectID = " & Me.ProjectID
End Sub
What i'm I doing wrong?