Hello everyone. When I use Docmd.OutPutTo it is giving me the wrong data (see image) 7-18-2014 5-12-08 PM.pdf AND 7-18-2014 5-13-18 PM.pdf
Here is the code
Here is the function
Here is the callCode:Public Function export_rpt(var_Rpt_Name As String) On Error GoTo Err_handler DoCmd.OutputTo acReport, var_Rpt_Name Exit_export_rpt: Exit Function Err_handler: If Err.Number = 2501 Then Err.Clear Else MsgBox "Error number " & Err.Number & ": " & Err.Description Resume Exit_export_rpt End If End Function
on the excel spreadsheet the data starts to repeat w/ inaccurate data at the fourth row and I have no idea why. On top of that, when I go to the print preview view in the report and right-click and export that way, I get the correct dataCode:Private Sub export_lbl_Click() Call export_rpt(Me.Name) 'features module End Sub. I've already compacted and repaired and I've already transferred objects into a new db. This is an issue that has been going on for about 5 -6 months now. Any suggestions?


. I've already compacted and repaired and I've already transferred objects into a new db. This is an issue that has been going on for about 5 -6 months now. Any suggestions?
Reply With Quote

