+ Reply to Thread
Results 1 to 2 of 2

filters

Hybrid View

  1. #1
    LHaro
    Guest

    filters

    Hi -

    If someone can help me with this, I would really appreciate it. What I want
    to do is use excel to open an instance of access and export a report to my c
    drive that has filters. My original code simply opens the report and prints
    it out e.g.

    OpenCurrentDatabase ("urizen.mdb")
    DoCmd.OpenReport "Rpt1", acViewNormal, "Floor='10'"

    but now i would like to just export it without printing it out, which i can
    do with the following line of code:

    DoCmd.OutputTo acOutputReport, "Rpt1", acFormatRTF, "c:\temp\Rpt1.rtf"

    is there any way i can specify the filter using the OutputTo method?

    Thanks.



  2. #2
    K Dales
    Guest

    RE: filters

    You will have more luck getting this answer from the Access newsgroup
    --
    - K Dales


    "LHaro" wrote:

    > Hi -
    >
    > If someone can help me with this, I would really appreciate it. What I want
    > to do is use excel to open an instance of access and export a report to my c
    > drive that has filters. My original code simply opens the report and prints
    > it out e.g.
    >
    > OpenCurrentDatabase ("urizen.mdb")
    > DoCmd.OpenReport "Rpt1", acViewNormal, "Floor='10'"
    >
    > but now i would like to just export it without printing it out, which i can
    > do with the following line of code:
    >
    > DoCmd.OutputTo acOutputReport, "Rpt1", acFormatRTF, "c:\temp\Rpt1.rtf"
    >
    > is there any way i can specify the filter using the OutputTo method?
    >
    > Thanks.
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1