dbTalk Databases Forums  

VBA Code Window - How to change the default viewing settings

comp.databases.ms-access comp.databases.ms-access


Discuss VBA Code Window - How to change the default viewing settings in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dpcman01
 
Posts: n/a

Default VBA Code Window - How to change the default viewing settings - 03-30-2009 , 06:22 PM






Whenever I open the VBA Code window, 23 separate windows open together with
the Project window.
I can close all unwanted windows and maximize the one I want, and when I
reopen the Code window, it maintains that format.
But each time I exit the application and restart, it reverts to the initial
format with the project window showing and multiple windows displayed.
This is only happening on a new notebook I've purchased.
On my main desktop PC the screen reopens with the most recent settings each
time.
I can't see any relevant options in the Tools - Options dialog.
I'm using Access 2002 with Windows XP Pro (all updates)

--
Bob Darlington
Brisbane



Reply With Quote
  #2  
Old   
Albert D. Kallal
 
Posts: n/a

Default Re: VBA Code Window - How to change the default viewing settings - 03-30-2009 , 06:32 PM






This means you not closing your code windows when you done...it tries thus
to remember what you have open..

First, on the access ui side..make sure all forms are closed...

now, ctrl-g (code side). simply hit the ctrl-f4 to start closing
windows.(you can even let it repeat
to close all windows). clicking on the x for each window also works..but,
the ctrl-f4 key does repeat and is faster for you..

When you are none, simply open up one code module. Hit enter to add a blank
line (you need to dirty the module). Now close the module, and hit save on
the menu bar.

Now, when you go back in, you should not see any forms modules. Keep in mind
if you have a form open on the ui side, then jumping to the code window will
using result in that code module for that form being opened.

when you done editing some code for a form, do a debug->compile...and then
close the form and then whack the save button.... that module should NOT
re-open when you go back..

So, this problem is really much centered around do you make a habit of
saving your code modules. So, close them..and then save them when you done.
They should stay closed when you do this...


--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal (AT) msn (DOT) com



Reply With Quote
  #3  
Old   
dpcman01
 
Posts: n/a

Default Re: VBA Code Window - How to change the default viewing settings - 03-30-2009 , 06:44 PM



Thanks Albert.
That did the trick with multiple windows, but the Project window still opens
and the selected window doesn't open maximized (as it was when saved). Any
ideas there?
On my desktop PC, the window reopens in the same format as I left it (ie
maximized without the project window).

--
Bob Darlington
Brisbane
"Albert D. Kallal" <PleaseNOOOsPAMmkallal (AT) msn (DOT) com> wrote

Quote:
This means you not closing your code windows when you done...it tries thus
to remember what you have open..

First, on the access ui side..make sure all forms are closed...

now, ctrl-g (code side). simply hit the ctrl-f4 to start closing
windows.(you can even let it repeat
to close all windows). clicking on the x for each window also works..but,
the ctrl-f4 key does repeat and is faster for you..

When you are none, simply open up one code module. Hit enter to add a
blank line (you need to dirty the module). Now close the module, and hit
save on the menu bar.

Now, when you go back in, you should not see any forms modules. Keep in
mind if you have a form open on the ui side, then jumping to the code
window will using result in that code module for that form being opened.

when you done editing some code for a form, do a debug->compile...and then
close the form and then whack the save button.... that module should NOT
re-open when you go back..

So, this problem is really much centered around do you make a habit of
saving your code modules. So, close them..and then save them when you
done. They should stay closed when you do this...


--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal (AT) msn (DOT) com





Reply With Quote
  #4  
Old   
Albert D. Kallal
 
Posts: n/a

Default Re: VBA Code Window - How to change the default viewing settings - 03-30-2009 , 06:57 PM



"dpcman01" <bob (AT) dpcman (DOT) com.au> wrote

Quote:
Thanks Albert.
That did the trick with multiple windows, but the Project window still
opens
and the selected window doesn't open maximized (as it was when saved). Any
ideas there?
On my desktop PC, the window reopens in the same format as I left it (ie
maximized without the project window).

Hum...we tend to work a tiny bit different.....

I always edited with the code whole code "ide" window maximized.

I ALSO always have the particular code window also maximized. I am not using
"procedure" view, but always use "module view".

You can turn off the project window if you don't want it to show (just click
on the x to close ).

Perhaps closing the project window might help this, but something is a "bit"
different here for you...

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal (AT) msn (DOT) com




Reply With Quote
  #5  
Old   
dpcman01
 
Posts: n/a

Default Re: VBA Code Window - How to change the default viewing settings - 03-30-2009 , 07:21 PM



Albert,
I also work in the Module view with the window maximized. That's why I want
it to reopen that way.
I've worked with every version of Access since 1.1 and have never struck
this one before.
It's not a major issue, since I can change the windows to suit manually each
time.
But it is an irritation when I know that somewhere there must be a setting I
can't find.

--
Bob Darlington
Brisbane
"Albert D. Kallal" <PleaseNOOOsPAMmkallal (AT) msn (DOT) com> wrote

Quote:
"dpcman01" <bob (AT) dpcman (DOT) com.au> wrote in message
news:49d1595d$0$32004$afc38c87 (AT) news (DOT) optusnet.com.au...
Thanks Albert.
That did the trick with multiple windows, but the Project window still
opens
and the selected window doesn't open maximized (as it was when saved).
Any
ideas there?
On my desktop PC, the window reopens in the same format as I left it (ie
maximized without the project window).


Hum...we tend to work a tiny bit different.....

I always edited with the code whole code "ide" window maximized.

I ALSO always have the particular code window also maximized. I am not
using "procedure" view, but always use "module view".

You can turn off the project window if you don't want it to show (just
click on the x to close ).

Perhaps closing the project window might help this, but something is a
"bit" different here for you...

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal (AT) msn (DOT) com





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.