PC Review


Reply
Thread Tools Rate Thread

Controlling the Access Window size

 
 
Bob Bridges
Guest
Posts: n/a
 
      25th Aug 2008
Is there a method to maximize the Access window inside VB code? I've found a
workaround to do it from outside the Access objects, but I figure I must be
doing it the hard way. Can anyone tell me?

The workaround, in case it's germane, is a VBScript program. I'm using a
VBS to open Access, do an OpenCurrentDatabase and then open one of the db's
forms. The db has VBA code in it so naturally Access stops to ask me whether
I'm sure I want to open it; I don't suppose there's a way to get around that
(at least I hope there isn't), so I had the main VBS trigger a subordinate
VBS to AppActivate the warning and SendKeys my automated reply. Since that
secondary program was there anyway, I also had it AppActivate and maximize
the Access window. But that's silly; surely there's a way to do it from
within the Access Application? Anyone know?

Since I have a workaround, no need to miss lunch to answer this question;
it'd just be nice to know the answer if you have it off the top of your head.
 
Reply With Quote
 
 
 
 
Klatuu
Guest
Posts: n/a
 
      25th Aug 2008
You can copy the code from this site into a standard module:

http://www.mvps.org/access/api/api0019.htm
--
Dave Hargis, Microsoft Access MVP


"Bob Bridges" wrote:

> Is there a method to maximize the Access window inside VB code? I've found a
> workaround to do it from outside the Access objects, but I figure I must be
> doing it the hard way. Can anyone tell me?
>
> The workaround, in case it's germane, is a VBScript program. I'm using a
> VBS to open Access, do an OpenCurrentDatabase and then open one of the db's
> forms. The db has VBA code in it so naturally Access stops to ask me whether
> I'm sure I want to open it; I don't suppose there's a way to get around that
> (at least I hope there isn't), so I had the main VBS trigger a subordinate
> VBS to AppActivate the warning and SendKeys my automated reply. Since that
> secondary program was there anyway, I also had it AppActivate and maximize
> the Access window. But that's silly; surely there's a way to do it from
> within the Access Application? Anyone know?
>
> Since I have a workaround, no need to miss lunch to answer this question;
> it'd just be nice to know the answer if you have it off the top of your head.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Controlling window size on RDP host =?Utf-8?B?SmFjb2JN?= Windows XP Work Remotely 0 28th Mar 2007 12:20 AM
Controlling browser window size =?Utf-8?B?TWFyY1Bhcm5lcw==?= Microsoft Frontpage 16 22nd Aug 2006 05:13 PM
controlling window size Ron Patterson Microsoft Word New Users 0 23rd Jan 2005 10:05 PM
Controlling Window Size Remulac Microsoft VB .NET 2 21st Jul 2004 04:13 PM
Controlling window size when opening form etc... Elwin Microsoft Access Forms 0 11th Jul 2003 04:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:59 AM.