Comes up quickly on the second click.
Is it because my program has got to big.
Comes up quickly on the second click.
Is it because my program has got to big.
What "view code" button are you talking about - a custom button?
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Thanks June7, I am in forms design, the 'view code' button is in the Tools area in the top right of screen.
Do you have database set for Tabbed Documents? I always use Overlapping Windows.
That button is not actually on the form. It is on the ribbon.
When clicked first time do you immediately get the circular "working" cursor?
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Wow all these years and I've never used that button.
What happens if you go to the Database tools tab and click on Visual Basic?
If this helped, please click the star * at the bottom left and add to my reputation- Thanks
Please use # icon on toolbar when posting code snippets.
Cross Posting: https://www.excelguru.ca/content.php?184
Debugging Access: https://www.youtube.com/results?sear...bug+access+vba
Regardless of which button I use to open the VBE, the first time I open it there is a very slight delay as opposed to subsequent openings. I would venture a guess that's due to loading add ins like M-z tools and smart indenter.
If this helped, please click the star * at the bottom left and add to my reputation- Thanks
With the form open on my screen, if I click the - View Code - button, the circular "working" cursor comes on for 7 to 10 seconds, then stays on the form screen.
If I click it a second time the code screen comes up straight away.
Going thru the Property Sheet is no better.
Going thru the Database tools tab and click on Visual Basic is no better.
This does NOT happen to my smaller programs.
Sorry, cannot replicate issue. Even with my largest db the VBE opens after several seconds without having to do a second click.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Time to ask how big the file is, especially since you raised the prospect in the first post?
Maybe it's the size, or it needs a compact/repair. Or it needs a decompile and recompile as well as c/r.
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.
It may be that you already have a lot of code windows open.
Close all code windows in the VBE then try opening the VBE again. This time it should open much faster.
If you have MZ Tools or similar, you may be able to click a menu command to close all open windows.
The size of the file is 32,432 KB .accdb
This size is AFTER I have compact/repair.
I only have one form open with no code windows open.
This file does not have TABLES, they are linked in from another file.
I do not have the same problems with my smaller size programs.
My db is 28,504 KB accdb.
Takes about 10 seconds for VBE to open. Then every single code module is open. I don't know any way to prevent that.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Just tested n a Access FE of 34428 KB and another of 144940 KB.
In each case, the VBE opens instantly if no other code windows are open.
There is a delay of 1-2 seconds if other code windows are open depending on the number of windows
For info, I'm using a very slow 11 year old workstation which runs Win10 & Office 365