Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Access General > Access2000 open...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 92493 of 97619
Post > Topic >>

Access2000 opens in half-size window

by "Arvi Laanemets" <garbage@[EMAIL PROTECTED] > Aug 7, 2008 at 08:51 AM

Hi

I have a couple of Access2000 applications, which I use in full-screen
mode 
(main form is quite big). Through a workday, whenever I close one 
application, and open next one (or same app again), it opens in
full-screen 
mode. But every day, when I 1st time open any of my apps at morning, it 
opens in half-sized window (full-size height, and half-size width, 
positioned in right half of screen). I have to resize the window, and to 
resize the main form of this app.

My computer remains logged on into domain for all night (all applications 
are closed). Applications I use are situated on server.

I think the problem is in VBA script which runs every night. It opens an 
Access application on server, and after some time closes it. When 
application starts, a form is opened, and forms Open event refreshes some 
data in certain table (delete and append queries).

When I run this script manually, the application ALWAYS opens in
half-sized 
window. When I open this application without script, I can maximize the 
window, and Access remembers this setting - until I run script again!

The script is:

Option Explicit
Dim objAccessApp, objAccessFile, strPath, strFile
strPath = "MyPath"
strFile = "MyApp.mdb"
Set objAccessFile=GetObject(strPath & strFile)
Set objAccessApp = objAccessFile.Parent
    objAccessApp.Visible = True
WScript.Sleep(5000)
objAccessApp.Quit

How can I force the script to open the app in full window?

Thanks in advance!
-- 
Arvi Laanemets
( My real mail address: arvi.laanemets<at>tarkon.ee )
 




 4 Posts in Topic:
Access2000 opens in half-size window
"Arvi Laanemets"  2008-08-07 08:51:12 
RE: Access2000 opens in half-size window
=?Utf-8?B?V2F5bmUtSS1N?=   2008-08-07 02:18:03 
Re: Access2000 opens in half-size window
"Arvi Laanemets"  2008-08-07 14:56:28 
Re: Access2000 opens in half-size window
"Dominic Vella"  2008-08-07 20:40:05 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Dec 4 21:41:09 CST 2008.