megatronixs
Registered User.
- Local time
- Today, 01:05
- Joined
- Aug 17, 2012
- Messages
- 719
Hi all,
 
I managed to create an excel export from a report with VBA. This works fine, well, almost.
The problem I have is that there are Yes/No checkboxes in the form. They don't appear on the excel output file, but they do in the report correctly.
How can I avoid this? I would like to show those columns also in the excel export.
 
I use the below code to export to excel with VBA:
 
	
	
	
		
 
Any help in solving this problem woudl be more then welcome
 
Greetings.
 I managed to create an excel export from a report with VBA. This works fine, well, almost.
The problem I have is that there are Yes/No checkboxes in the form. They don't appear on the excel output file, but they do in the report correctly.
How can I avoid this? I would like to show those columns also in the excel export.
I use the below code to export to excel with VBA:
		Code:
	
	
	Private Sub ErrorCorrections_Click()
On Error GoTo Err_ErrorCorrections_Click
    Dim stDocName As String
    'stDocName = "ErrorsandcorrectionsReport"
    'DoCmd.OpenReport stDocName, acPreview
 
    DoCmd.OutputTo acOutputReport, "ErrorsandcorrectionsReport", acFormatXLS, "X:\Test\ReportName - " & Format(Date, "yyyymmdd") & ".xls"
Exit_ErrorCorrections_Click:
    Exit Sub
Err_ErrorCorrections_Click:
    MsgBox Err.Description
    Resume Exit_ErrorCorrections_Click
 
End SubAny help in solving this problem woudl be more then welcome

Greetings.
 
	 
 
		 
 
		 
 
		 
 
		