T
tmdrake
I am using the following code to open a form from a subform on the double
click (this works), however the Access becomes unresponsive when I use this
code.
Private Sub ProjectID_DblClick(Cancel As Integer)
Dim stDocName As String
Dim stLinkCriteria As String
stLinkCriteria = Me.ProjectID
stDocName = "pivtblHours_Worked"
DoCmd.OpenForm stDocName, acFormPivotTable, _
"ProjectID = """ & stLinkCriteria & """"
DoCmd.OutputTo acOutputForm, "pivtblHours_Worked", "(*.xls)", _
"G:\Project Staffing Spreadsheets\pivtblHours_Worked_template.xls", True, ""
Debug.Print stLinkCriteria
End Sub
However, when I have the form open in Datasheet view, it works just fine.
Please help, I really need to open in the Form Pivot Table view.
Thanks
click (this works), however the Access becomes unresponsive when I use this
code.
Private Sub ProjectID_DblClick(Cancel As Integer)
Dim stDocName As String
Dim stLinkCriteria As String
stLinkCriteria = Me.ProjectID
stDocName = "pivtblHours_Worked"
DoCmd.OpenForm stDocName, acFormPivotTable, _
"ProjectID = """ & stLinkCriteria & """"
DoCmd.OutputTo acOutputForm, "pivtblHours_Worked", "(*.xls)", _
"G:\Project Staffing Spreadsheets\pivtblHours_Worked_template.xls", True, ""
Debug.Print stLinkCriteria
End Sub
However, when I have the form open in Datasheet view, it works just fine.
Please help, I really need to open in the Form Pivot Table view.
Thanks