|
-
Aug 24th, 2005, 06:50 AM
#1
Thread Starter
Addicted Member
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!
-
Aug 24th, 2005, 06:52 AM
#2
Re: Help with MS Access VB
Did you include the lastest version of MDAC with your installation setup package?
-
Aug 24th, 2005, 06:55 AM
#3
Thread Starter
Addicted Member
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!
-
Aug 24th, 2005, 08:12 AM
#4
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
-
Aug 24th, 2005, 12:32 PM
#5
Frenzied Member
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
-
Aug 26th, 2005, 07:30 AM
#6
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|