Referencing to a report object in report's command bar button

  • Thread starter Vladimír Cvajniga
  • Start date
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top