473,406 Members | 2,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

One last question about using GetObject...

I am progressing with GetObject .. The following code will open and
print a report. I enquired how to open, maximise WITHOUT printing by
default and it was suggested that I look at further parameters within
the GetObject method. I have tried that but when I add an extra
parameter such as

..DoCmd.OpenReport ("NewReport",acViewPreview)

I get an " expected =" compile error.
Should I use a report object variable to 'hold' the previewed report.
But then .DoCmd does not seem to work!

Set AcObj = GetObject("c:\db1.mdb")

With AcObj.Application

.DoCmd.OpenReport "NewReport"

End With

Martyn gwynne
Nov 12 '05 #1
1 1752
On 11 Feb 2004 12:27:53 -0800, gw*********@aol.com (Martyn Gwynne)
wrote:

Try this; works for me:
..DoCmd.OpenReport "NewReport", acViewPreview

-Tom.

I am progressing with GetObject .. The following code will open and
print a report. I enquired how to open, maximise WITHOUT printing by
default and it was suggested that I look at further parameters within
the GetObject method. I have tried that but when I add an extra
parameter such as

.DoCmd.OpenReport ("NewReport",acViewPreview)

I get an " expected =" compile error.
Should I use a report object variable to 'hold' the previewed report.
But then .DoCmd does not seem to work!

Set AcObj = GetObject("c:\db1.mdb")

With AcObj.Application

.DoCmd.OpenReport "NewReport"

End With

Martyn gwynne


Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Navdeep Bhardwaj | last post by:
I am using a code in ASP that uses a Java class. I am using GetObject("java:MyClass") to get the object of that class. It was working fine, But now we have shifted to Windows 2003 server with IIS...
2
by: Blake | last post by:
single ASP page running on IIS 5 on a Native Windows 2000 AD: <%Set usr = GetObject("WinNT://LONGWOOD/duffeyba,user")%> (the IIS machine is a member server) The page is running as the user...
2
by: CJM | last post by:
I'm building an ASP app that uses Windows Authentication (IWA). I have an authentication routine that assesses if & how the user can use the application (see code snippet below). Users of a...
3
by: perspolis | last post by:
Is there a method like GetObject in vb to get an instance of current object runnig??
1
by: agassi | last post by:
hi guys, i really need your help!! i want to add a toolbar with some push buttons in which i put some icons. it works without including <windows.h>. However, i really need this library so i dont...
3
by: bobdydd | last post by:
Hi Everybody Access 2000, Outlook 2000 Windows XP I am running the code below to open Microsoft Outlook from a Command Button. It works fine until I tried it on a machine that has Office...
9
by: singhal.prateek | last post by:
Hi, In a class, I have a static function which returns a particular object of the class depending on the arguments. Now, if I use this function to call another method of the class, I get an...
1
by: RC | last post by:
How easy would it be for me to send the result from this script to a txt or csv file. I also want to make sure it is getting the results from all Domain Controllers in the domain. The LLTS may vary...
2
by: bahnfire | last post by:
Hi, I am hoping that I finally have the right group :-) I am using Visual C++ Express 2008 and am trying to change the taskbar icon that I am using (notifyIcon1) as some state changes (button...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.