Please help...
I have reports I need to output to excel for analysis, and addition of other data.
The way the user outputs the report to excel is a button (Output Report to Excel)
Which has the code:
The query has the same information, but not formatted correctly, the report has Sorting and grouping headers, which group the types of Modules and Document types respectively.
So if the user outputs the query they still have to sit for hours grouping it into a manageable format, with groups.
My thought was to make colums in the report with tags or some way of defining it as a column excel would recognise and format as such.
Any help would be greatly appreciated.
Thank you,
Kind regards
Triacona
I have reports I need to output to excel for analysis, and addition of other data.
The way the user outputs the report to excel is a button (Output Report to Excel)
Which has the code:
Code:
Private Sub DcOutPutQueryToExcel_Click()
On Error GoTo Err_DcOutPutQueryToExcel_Click
Dim stDocName As String
stDocName = ListDc.Column(2)
If Not QueryExists(stDocName) Then
MsgBox stDocName & " query doesn't exist, Output the REPORT!", vbExclamation, "Output The REPORT!!!"
ElseIf Not Me.txtEndDate.Enabled = True Then
DoCmd.OutputTo acOutputQuery, stDocName, acFormatXLS, stDocName & ".xls", True
ElseIf IsNull(Me.txtStartDate And Me.txtEndDate) Then
DoCmd.RunMacro "MsgBoxNoDate"
Else: DoCmd.OutputTo acOutputQuery, stDocName, acFormatXLS, stDocName & ".xls", True
End If
Exit_DcOutPutQueryToExcel_Click:
Exit Sub
Err_DcOutPutQueryToExcel_Click:
MsgBox Err.Description
Resume Exit_DcOutPutQueryToExcel_Click
End Sub
The query has the same information, but not formatted correctly, the report has Sorting and grouping headers, which group the types of Modules and Document types respectively.
So if the user outputs the query they still have to sit for hours grouping it into a manageable format, with groups.
My thought was to make colums in the report with tags or some way of defining it as a column excel would recognise and format as such.
Any help would be greatly appreciated.
Thank you,
Kind regards
Triacona