Discussion Locked

MSAccess VBA question...

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I would like to open a form in a window with no toolbar, menubar or statusbar. I would like the form to be maximized in the Access window (so that only one window is visible). I would also like to specify the window size (ie application.window(3.5,3.0))

I know that I can build this into an OnOpen event.

Any ideas as to the literal VBA?

Thanks,
Rush

PS. please cc: rushsherman@excite.com

5 replies

by jsull

I know I can figure this out for you, but I need info on the version of Access you are currently using. Also, do you want the form to be the set size or the entire Access window? Let me know and I'll get the answer to your question back to you. I have sent a copy of this response to you via e-mail.

by kjfl

Heres an idea:

Create a macro, could be called MAXIMIZE.

Edit the macro ti run the command maximize with no other settings.

Each form that you want to maximize, just choose the macro from the drop-box under the form-event OnFocus (GotFocus)((Sorry - i'm not quite sure as i'm currently in a danish version))

This should do the trick..

Would you like to know the command in VBA, just export the macro as Module an snap the code from there!

Kim Laursen

This discussion is closed to new replies.