T
tmdrake
I have a subform where when you double click on a specific record, another
form opens up with specific information for the record selected. This form
is a pivot table.
What code would I use to automatically output that form (pivot table) to
Excel. I tried using a Macro, however I get an error message saying my
version of Access (2003) does not have that feature. I am trying to output
this into a template file already created with the proper formatting.
This is the code used on the double click to open the pivot table; its works
fine.
Private Sub ProjectID_DblClick(Cancel As Integer)
Dim stDocName As String
Dim stLinkCriteria As String
stLinkCriteria = Me.ProjectID
stDocName = "pivtblHours_Worked"
DoCmd.OpenForm stDocName, acFormDS, , _
"ProjectID = """ & stLinkCriteria & """"
Debug.Print stLinkCriteria
End Sub
Any help would be greatly appreciated.
form opens up with specific information for the record selected. This form
is a pivot table.
What code would I use to automatically output that form (pivot table) to
Excel. I tried using a Macro, however I get an error message saying my
version of Access (2003) does not have that feature. I am trying to output
this into a template file already created with the proper formatting.
This is the code used on the double click to open the pivot table; its works
fine.
Private Sub ProjectID_DblClick(Cancel As Integer)
Dim stDocName As String
Dim stLinkCriteria As String
stLinkCriteria = Me.ProjectID
stDocName = "pivtblHours_Worked"
DoCmd.OpenForm stDocName, acFormDS, , _
"ProjectID = """ & stLinkCriteria & """"
Debug.Print stLinkCriteria
End Sub
Any help would be greatly appreciated.