G
Guest
Good evening,
I have a Main Entry Form for the entry of installation data. I have a
Report set up to be used as an Audit tool. I would like to have the Audit
Report pop up for review when the Save & Close button is depressed. The Form
and the Report are linked by Folio No, unfortunately I have not been
successful, when you push the Save & Close the form opens but its blank. I
have checked the underlying tables and the data seems to be there. Is there
something unusual about trying to attach a Report to a Form at all.
Private Sub btnSaveRecord_Click()
On Error GoTo Err_btnSaveRecord_Click
Dim stDocName As String
Dim stLinkCriteria As String
DoCmd.SetWarnings False
DoCmd.RunCommand acCmdSaveRecord
DoCmd.Requery
If cbxOurProjectNumber.Value = "V0402" Then
MsgBox ("After an install for this project, an QA form is
required.")
' stDocName = "ReportNameHere"
stLinkCriteria = "[Folio]=" & Me![Folio]
DoCmd.OpenReport stDocName, , , stLinkCriteria
End If
DoCmd.Close acForm, "MainEntryForm"
Any help gratefully accepted. Thank you,
I have a Main Entry Form for the entry of installation data. I have a
Report set up to be used as an Audit tool. I would like to have the Audit
Report pop up for review when the Save & Close button is depressed. The Form
and the Report are linked by Folio No, unfortunately I have not been
successful, when you push the Save & Close the form opens but its blank. I
have checked the underlying tables and the data seems to be there. Is there
something unusual about trying to attach a Report to a Form at all.
Private Sub btnSaveRecord_Click()
On Error GoTo Err_btnSaveRecord_Click
Dim stDocName As String
Dim stLinkCriteria As String
DoCmd.SetWarnings False
DoCmd.RunCommand acCmdSaveRecord
DoCmd.Requery
If cbxOurProjectNumber.Value = "V0402" Then
MsgBox ("After an install for this project, an QA form is
required.")
' stDocName = "ReportNameHere"
stLinkCriteria = "[Folio]=" & Me![Folio]
DoCmd.OpenReport stDocName, , , stLinkCriteria
End If
DoCmd.Close acForm, "MainEntryForm"
Any help gratefully accepted. Thank you,