V
Vladimír Cvajniga
Hello,
is there any way to refer to a report object in a report's command bar
button (OnAction)? There is no problem to do it in form, eg.
=fncMyFunction([Form]), but I can't find anything adequate for report - none
of the following works:
=fncMyFunction([Report])
=fncMyFunction([Form])
=fncMyFunction([Me])
I need it for something like this:
Public Function exportRpt2HTML(rpt As Report)
DoCmd.OutputTo acOutputReport, rpt.Name, acFormatHTML, rpt.Name &
".html", True
End Function
I have MS Access 97 CZ + SP2.
TIA.
Vlado
is there any way to refer to a report object in a report's command bar
button (OnAction)? There is no problem to do it in form, eg.
=fncMyFunction([Form]), but I can't find anything adequate for report - none
of the following works:
=fncMyFunction([Report])
=fncMyFunction([Form])
=fncMyFunction([Me])
I need it for something like this:
Public Function exportRpt2HTML(rpt As Report)
DoCmd.OutputTo acOutputReport, rpt.Name, acFormatHTML, rpt.Name &
".html", True
End Function
I have MS Access 97 CZ + SP2.
TIA.
Vlado