Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Analyze with Excel/Work report function

Status
Not open for further replies.

sabavno

Programmer
Jul 25, 2002
381
CA
hi

The standard report toolbar has 'Analyze with Excel/Word' button that sends the report to the Excel or Word.

Can I control the location where the file is being sent?
And one more question, on the report I have a check box, but when I send it to excel using that report button, that field with the check box does not show up

Please advise

Thanks
 
You need to create a function and then call that from a toolbar button. The function needs to be something like:

Code:
Function fctnRptExport()
On Error GoTo fctnRptExport_Err

    DoCmd.OutputTo acOutputReport, Screen.ActiveReport.Name

fctnRptExport_Exit:
    Exit Function

fctnRptExport_Err:
    MsgBox Err.Number & ": " & Err.DESCRIPTION, vbExclamation
    Resume fctnRptExport_Exit

End Function
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top