Form View Only

  • Thread starter Thread starter Jacob Frankham
  • Start date Start date
J

Jacob Frankham

Hi

Is it possible to run a form without Access in the background, ie when I
open the database I just want the form to open, not te grey Access
background behind it with the menu bar etc?

Cheers

Jake
 
Jacob Frankham said:
Hi

Is it possible to run a form without Access in the background, ie
when I open the database I just want the form to open, not te grey
Access background behind it with the menu bar etc?

Cheers

Jake

See this link:

http://www.mvps.org/access/api/api0019.htm

It's not altogether satisfactory, though. Your form must be popup (and
modal, in recent operating systems), and you had better have good
error-handling in place. Also, in my experience the Access window is
going to be visible briefly as the application starts up.
 
Hi Dirk

Thanks again for the link - I have got it to work fine BUT....

I have a command button on my form which runs a report, but now that I have
minimised the access window it will not show the report.

I have tried calling the SW_SHOWMAXIMIZED and SW_SHOWNORMAL constants from
the command buttons click event but it doesn't work,

any ideas?

Thanks

Jake
 
Jacob Frankham said:
Hi Dirk

Thanks again for the link - I have got it to work fine BUT....

I have a command button on my form which runs a report, but now that
I have minimised the access window it will not show the report.

I have tried calling the SW_SHOWMAXIMIZED and SW_SHOWNORMAL constants
from the command buttons click event but it doesn't work,

any ideas?

Reports are a problem. I've tried the only trick I know to make that
work while still hiding the application window -- calling the Windows
API to change the report' window's parent to the desktop -- and the best
I've been able to do is show it, then have Access crash on me when I
close the report. Unless someone else knows a better trick for this, I
think you're going to have to show the Access application window first,
then open the report, and hide the application window again when the
report closes.
 
Back
Top