473,385 Members | 1,470 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,385 software developers and data experts.

More getobject help, please

Thanks to some help yesterday, I am progressing with GetObject .. the
following code will open and print a report. But, how can i get it to
open, maximise WITHOUT printing by default? I need something like
..previewReport

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

With AcObj.Application

.DoCmd.OpenReport "query1"

End With
AcObj.Visible = True
Nov 12 '05 #1
2 1400
On 10 Feb 2004 14:01:37 -0800, gw*********@aol.com (Martyn Gwynne)
wrote:

Check the help file on the OpenReport action. There are a couple more
optional arguments that will allow you to specify Preview.

Btw, terrible name for such a nice report.

-Tom.

Thanks to some help yesterday, I am progressing with GetObject .. the
following code will open and print a report. But, how can i get it to
open, maximise WITHOUT printing by default? I need something like
.previewReport

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

With AcObj.Application

.DoCmd.OpenReport "query1"

End With
AcObj.Visible = True


Nov 12 '05 #2
Tom van Stiphout <to*****@no.spam.cox.net> wrote in message news:<pb********************************@4ax.com>. ..
On 10 Feb 2004 14:01:37 -0800, gw*********@aol.com (Martyn Gwynne)
wrote:

Check the help file on the OpenReport action. There are a couple more
optional arguments that will allow you to specify Preview.

Btw, terrible name for such a nice report.

-Tom.

Thanks to some help yesterday, I am progressing with GetObject .. the
following code will open and print a report. But, how can i get it to
open, maximise WITHOUT printing by default? I need something like
.previewReport

Set AcObj = GetObject("c:\db1.mdb")
Thanks, I see what you mean, but then I get an " expected =" error.
Should I use a report object variable to 'hold' the previewed report.
But then doCmd does not seem to work!

MartynWith AcObj.Application

.DoCmd.OpenReport "query1"

End With
AcObj.Visible = True

Nov 12 '05 #3

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...
4
by: Marcin Kalicinski | last post by:
Hi, /////////////////////////////////////////////// // File Module.h struct Object { static Object *GetObject(int i); };
3
by: Otie | last post by:
I found the following under the GetObject help notes and in the example for GetObject: "This example uses the GetObject function to get a reference to a specific Microsoft Excel worksheet...
2
by: Randy Harris | last post by:
I'm going nuts trying to figure this out, sure hope someone can help. My application uses TransferSpreadsheet to insert data into an existing Excel spreadsheet (which works), then opens and...
4
by: james | last post by:
I upgraded my 2002 project to 2003 and I am getting several of there errors on my forms xxxForm.resx Resource transformation for file 'xxxForm.resx' failed. Possible Version mismatch. Type...
0
by: Piotr Kosinski | last post by:
Hi, I noticed strange behaviour in Excel. I wrote small shared add in for Excel. This util create button in standard bar. Button click provides to open a form which has to import data from sql...
1
by: joe | last post by:
We just moved a legacy asp application to a Win2003 server. The following line of code: set objUser = GetObject("WinNT://" & strDomain & "/" & strUserName & ",user") Raises the following...
0
by: kanu | last post by:
Hi, We have moved our domain controllers from win2K to win3K. The script below doesnt work at all now because by default Win3K disables "Network access: Let Everyone permissions apply to anonymous...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.