468,556 Members | 2,387 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,556 developers. It's quick & easy.

Maximise Access window

I know this sounds involved, but it works ... almost

I am using a Hyperlink to run an Excel application which generates a chart
based on a query in the current database. This chart is saved a a GIF file
is linked to an Image control on my form. ( Programming the chart object has
proved far too slow)

The relevant code is

.......
......
CreateHyperlink Me!Storage, "", ExcelPath ' Generate GIF
Files
DoEvents

fCloseApp ("XLMAIN") ' ALL versions of Excel, any spreadsheet

Call SS_apiShowWindow(GetAccesshWnd(), SW_MAXIMIZE) '
*****************

Application.DoCmd.Maximize
' ****************

DoCmd.SelectObject acForm, Me.Name
DoCmd.Maximize
'*****************

AllocationPlan.Picture = FindPlanPath(PlanFolder & "\" & AllocatedPath)
' Load Image

.......
.......

All the bits about Maximize fail to do anything as both Access and the form
remain minimised on the task bar.

How do I automatically maximize them ( Clicking on them works fine)

Thanks

Phil

Jul 6 '08 #1
2 3037
Phil Stanton wrote:
I know this sounds involved, but it works ... almost

I am using a Hyperlink to run an Excel application which generates a chart
based on a query in the current database. This chart is saved a a GIF file
is linked to an Image control on my form. ( Programming the chart object has
proved far too slow)

The relevant code is

.......
......
CreateHyperlink Me!Storage, "", ExcelPath ' Generate GIF
Files
DoEvents

fCloseApp ("XLMAIN") ' ALL versions of Excel, any spreadsheet

Call SS_apiShowWindow(GetAccesshWnd(), SW_MAXIMIZE) '
*****************

Application.DoCmd.Maximize
' ****************

DoCmd.SelectObject acForm, Me.Name
DoCmd.Maximize
'*****************

AllocationPlan.Picture = FindPlanPath(PlanFolder & "\" & AllocatedPath)
' Load Image

.......
.......

All the bits about Maximize fail to do anything as both Access and the form
remain minimised on the task bar.

How do I automatically maximize them ( Clicking on them works fine)

Thanks

Phil
Would the code at http://www.mvps.org/access/api/api0018.htm work? As
long as your extension opens up the correct viewer I'd think it should.

Maybe http://www.mvps.org/access/api/api0019.htm addresses your issue
instead?
La Bomba
http://www.youtube.com/watch?v=jY48iTyLrmk
Jul 6 '08 #2
Brilliant. Thanks a lot. The second link worked perfectly

Phil
"Salad" <oi*@vinegar.comwrote in message
news:_o******************************@earthlink.co m...
Phil Stanton wrote:
>I know this sounds involved, but it works ... almost

I am using a Hyperlink to run an Excel application which generates a
chart based on a query in the current database. This chart is saved a a
GIF file is linked to an Image control on my form. ( Programming the
chart object has proved far too slow)

The relevant code is

.......
......
CreateHyperlink Me!Storage, "", ExcelPath ' Generate GIF
Files
DoEvents

fCloseApp ("XLMAIN") ' ALL versions of Excel, any
spreadsheet

Call SS_apiShowWindow(GetAccesshWnd(), SW_MAXIMIZE) '
*****************

Application.DoCmd.Maximize ' ****************

DoCmd.SelectObject acForm, Me.Name
DoCmd.Maximize '*****************

AllocationPlan.Picture = FindPlanPath(PlanFolder & "\" &
AllocatedPath) ' Load Image

.......
.......

All the bits about Maximize fail to do anything as both Access and the
form remain minimised on the task bar.

How do I automatically maximize them ( Clicking on them works fine)

Thanks

Phil

Would the code at http://www.mvps.org/access/api/api0018.htm work? As
long as your extension opens up the correct viewer I'd think it should.

Maybe http://www.mvps.org/access/api/api0019.htm addresses your issue
instead?
La Bomba
http://www.youtube.com/watch?v=jY48iTyLrmk

Jul 6 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by WindAndWaves | last post: by
4 posts views Thread by Andrew Poulos | last post: by
2 posts views Thread by DaveO | last post: by
6 posts views Thread by Peter Frost | last post: by
reply views Thread by Rob Nicholson | last post: by
1 post views Thread by creamBoy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.