PC Review


Reply
Thread Tools Rate Thread

Automating MS-Access DB to open correctly

 
 
=?Utf-8?B?WFA=?=
Guest
Posts: n/a
 
      16th Mar 2007
Using Office 2003 and Windows XP.

I have a loading program that is designed to open an Access DB and then
Excel closes itself. It works, but when Access opens, the initial window is
small, then it maximizes, but the Main Menu remains the size of the small
window that initially opened.

So every time this runs, the users will have to resize this tiny menu so
they can see everything.

Does anyone have a clue how to fix this?

My code:

Dim oAccessApp As Object
Set oAccessApp = GetObject(csFullNameDestin, "Access.Application")
oAccessApp.Visible = True
oAccessApp.DoCmd.RunCommand 10 '10 = acCmdAppMaximize

Thanks much.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWFkaGFu?=
Guest
Posts: n/a
 
      19th Mar 2007
Hi, you can try the following snippet, Shell "C:\Program Files\Microsoft
Office\OFFICE11\MSACCESS.EXE" & Your filename.
I hope this helps you.

"XP" wrote:

> Using Office 2003 and Windows XP.
>
> I have a loading program that is designed to open an Access DB and then
> Excel closes itself. It works, but when Access opens, the initial window is
> small, then it maximizes, but the Main Menu remains the size of the small
> window that initially opened.
>
> So every time this runs, the users will have to resize this tiny menu so
> they can see everything.
>
> Does anyone have a clue how to fix this?
>
> My code:
>
> Dim oAccessApp As Object
> Set oAccessApp = GetObject(csFullNameDestin, "Access.Application")
> oAccessApp.Visible = True
> oAccessApp.DoCmd.RunCommand 10 '10 = acCmdAppMaximize
>
> Thanks much.

 
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
Automating open, save and print in Word, through Access use VBA Lost without a button Microsoft Access VBA Modules 1 13th Feb 2009 05:23 AM
Automating MailMerge from Access - Word unable to open datasource =?Utf-8?B?RW1tYSBBdW1hY2s=?= Microsoft Access VBA Modules 0 28th Nov 2006 07:54 PM
Access report does not printing correctly but preview correctly! Ngoc Dang Dinh via AccessMonster.com Microsoft Access Reports 0 10th May 2005 02:58 AM
Access report does not printing correctly but preview correctly! Ngoc Dang Dinh via AccessMonster.com Microsoft Access ADP SQL Server 0 10th May 2005 02:57 AM
microsoft word does not open correctly, it says to open in safe m. =?Utf-8?B?cGF1bG8gY2FudWphaWE=?= Microsoft Word Document Management 1 16th Nov 2004 09:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:39 PM.