Results 1 to 6 of 6

Thread: Help with MS Access VB

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2002
    Location
    10000 light years away
    Posts
    143

    Help with MS Access VB

    Hi,

    Pls help me with this...

    When I use the docmd.OpenReport("ReportName") option for opening a report within ms access, it is working fine. But when i run this form from another PC on the LAN, i get an error message : "Wrong number of arguments or invalid procedure". What could be the problem???

    Thanks in advance.

    Binish
    I was gratified to be able to answer promptly. I said I don't know!

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Help with MS Access VB

    Did you include the lastest version of MDAC with your installation setup package?

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2002
    Location
    10000 light years away
    Posts
    143

    Re: Help with MS Access VB

    I am running it directly from MS Access. using MS Access forms
    I was gratified to be able to answer promptly. I said I don't know!

  4. #4
    Fanatic Member dannymking's Avatar
    Join Date
    Jul 2005
    Location
    Darlington, North East UK
    Posts
    677

    Re: Help with MS Access VB

    Seeing as it is across a LAN.. I presume that this is the same database?

    You are opening the report with the default of printing and normal window view. Does your report require parameters that are not being correctly set?

    Test the other machine to see if it can create a report.. if you get an error message stating no printers then please refer to this from M$

    http://support.microsoft.com/default...roduct=acc2002
    Danny

    Never Think Impossible

    If you find my answer helpful then please add to my reputation

  5. #5
    Frenzied Member
    Join Date
    May 2004
    Location
    Carlisle, PA
    Posts
    1,045

    Re: Help with MS Access VB

    I think the default for OpenReport is to Print the report. Do you have a specific printer called out? If so, it is probably not available across the net ... at least not by the same spec called out in your local program.

    Try opening the report to the local display instead of to a printer ...

    DoCmd.OpenReport "rptname", acViewPreview, , , acWindowNormal

    If you do Open the Report directly to a printer, make sure you have it set to the default printer.
    Blessings in abundance,
    All the Best,
    & ENJOY!

    Art . . . . Carlisle, PA . . USA

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Jul 2002
    Location
    10000 light years away
    Posts
    143

    Re: Help with MS Access VB

    Thanks,

    I am already doing acViewPreview and acWindowNormal. The problem is not with the printer settings either...

    P.S. - I'm opening the access form saved on an mdb file on my machine from another machine on the network.
    I was gratified to be able to answer promptly. I said I don't know!

Posting Permissions

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



Click Here to Expand Forum to Full Width