Opening Databases in FullScreen

  • Thread starter Thread starter Alan Partridge
  • Start date Start date
A

Alan Partridge

Just a quick question:

I have code attached to a central switchboard that opens
various other databases, and it's working fine BUT it
insists on opening them not in fullscreen mode. I can get
forms maximized but not the database.

Any ideas?
 
-----Original Message-----
Just a quick question:

I have code attached to a central switchboard that opens
various other databases, and it's working fine BUT it
insists on opening them not in fullscreen mode. I can get
forms maximized but not the database.

Any ideas?
.
add a line in your code
docmd.maximize
 
Alan Partridge said:
Just a quick question:

I have code attached to a central switchboard that opens
various other databases, and it's working fine BUT it
insists on opening them not in fullscreen mode. I can get
forms maximized but not the database.

Any ideas?

I'm not sure what you mean by "opens various other databases" -- do you
mean you're creating additional instances of Access? To maximize the
Access application window, you can use this statemewnt

RunCommand acCmdAppMaximize

If you need to run this on another instance of Access, you'd need to get
an object reference to that instance and call RunCommand with that
object; e.g.,

objAccess.RunCommand acCmdAppMaximize

At least, I think that should work, but I can't say I've tried it.
 
Many thanks Dirk, that final line of code you offered was
exactly what was needed! Cheers
 
Back
Top