U
UG
Hi freaks,
I need some help for exporting a report into an EXCEL-sheet.
I've created a button on a form using the following code for Click-event:
....
stDocName = "MyReport"
MyFilter = .............................
DoCmd.OutputTo acOutputReport, stDocName, , , True
....
The report "MyReport" contains a filter activated in On-Open-event:
Me.filter = MyFilter
Me.FilterOn = True
This construction works without any problem when I select as Output Foramt
the snapshot dormat. When I select "Microfoft Excel 5-7" as output format the
file seems to be generated but it cannot be opened! The message EXCEL brings
up is "Cannot acces 'filename'".
Any hint or advice is very appreciated.
Thanks,
Ulrike
I need some help for exporting a report into an EXCEL-sheet.
I've created a button on a form using the following code for Click-event:
....
stDocName = "MyReport"
MyFilter = .............................
DoCmd.OutputTo acOutputReport, stDocName, , , True
....
The report "MyReport" contains a filter activated in On-Open-event:
Me.filter = MyFilter
Me.FilterOn = True
This construction works without any problem when I select as Output Foramt
the snapshot dormat. When I select "Microfoft Excel 5-7" as output format the
file seems to be generated but it cannot be opened! The message EXCEL brings
up is "Cannot acces 'filename'".
Any hint or advice is very appreciated.
Thanks,
Ulrike