473,395 Members | 1,460 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

VBA Editor not starting correctly

Hello All,

I hope someone out there has some input on this problem, it driving me
nuts.

This problem only occurs with one code .mdb out of many I have on my
system, which implies the problem is with the .mdb, not the
environment.

I'm using Office 2K developer edition, Win2k O/S. Office and O/S are up
to date on service packs and patches. Here is the issue:

1. I open the code .mdb using the shift key to bypass the startup
program.

2. The Access environment opens normally with the main window open and
forms object selected.

3. When I use the code button to open the editor, the default selected
form opens in the design mode not the editor. (Normally the editor
opens at this point)

4. When I select the code button at this point the editor opens, but
the editor is all messed up. The code modules are open on a dark gray
window. Several of the module window headers (the part with the general
and declaration drop down boxes) are behind the main tool bars and I
cannot grab them to move them. The project explorer, property window
and immediate window are gone and will not open (or at less if they are
opening they do not appear)

5. At this point nothing I do fixes the problem. I've tried
compiling, compact/repair, used jet compact utility and many other
sequences of opening, saving and closing.

6. I have noticed that when I close the .mdb in this condition, the
associated lock file does not close.

Now for the rest of the story

7. If I delete the lock file, reopen the .mdb and immediately
"Compact and Repair Database" everything works fine. When I close
the .mdb in this condition the lock file closes fine.

8. When I reopen the mdb without compacting and repairing its back to
square one. I've tried many sequences of saving and closing.

My only guess is something is hosed up with the docking in the editor
window. This is a very large project. I do not want to copy everything
one by one to a new .mdb
Thanks,
John Wind

Nov 13 '05 #1
4 1859
Rog
John,

"Copying everything" is not such a big hassle as you may think.
Create a new database and use the File/Get external data /Import
function. Just click on "select all" in each of the tabs (tables,
queries, etc.)
This may solve your problem.

Nov 13 '05 #2
Sometimes I also have similar problems.

I have a solution that has worked each time for me, and that avoids to
copy all in another mdb file:

Lauch the database using the /decompile flag ("C:\Program
Files\Microsoft Office\Office\Msaccess.exe" /decompile toto.mdb)

Normally the problem should be solved. You can then compile your
project and compact the database.

David.
jo******@mindspring.com wrote in message news:<11**********************@g14g2000cwa.googleg roups.com>...
Hello All,

I hope someone out there has some input on this problem, it driving me
nuts.

This problem only occurs with one code .mdb out of many I have on my
system, which implies the problem is with the .mdb, not the
environment.

I'm using Office 2K developer edition, Win2k O/S. Office and O/S are up
to date on service packs and patches. Here is the issue:

1. I open the code .mdb using the shift key to bypass the startup
program.

2. The Access environment opens normally with the main window open and
forms object selected.

3. When I use the code button to open the editor, the default selected
form opens in the design mode not the editor. (Normally the editor
opens at this point)

4. When I select the code button at this point the editor opens, but
the editor is all messed up. The code modules are open on a dark gray
window. Several of the module window headers (the part with the general
and declaration drop down boxes) are behind the main tool bars and I
cannot grab them to move them. The project explorer, property window
and immediate window are gone and will not open (or at less if they are
opening they do not appear)

5. At this point nothing I do fixes the problem. I've tried
compiling, compact/repair, used jet compact utility and many other
sequences of opening, saving and closing.

6. I have noticed that when I close the .mdb in this condition, the
associated lock file does not close.

Now for the rest of the story

7. If I delete the lock file, reopen the .mdb and immediately
"Compact and Repair Database" everything works fine. When I close
the .mdb in this condition the lock file closes fine.

8. When I reopen the mdb without compacting and repairing its back to
square one. I've tried many sequences of saving and closing.

My only guess is something is hosed up with the docking in the editor
window. This is a very large project. I do not want to copy everything
one by one to a new .mdb
Thanks,
John Wind

Nov 13 '05 #3

Rog wrote:
John,

"Copying everything" is not such a big hassle as you may think.
Create a new database and use the File/Get external data /Import
function. Just click on "select all" in each of the tabs (tables,
queries, etc.)
This may solve your problem.

Rog,

Thanks for the advice, copied everything to new mdb and fixed the
problem.

Typical case of not seeing the forest for the trees. I sometimes get
too focused on the why and not the fix.

Nov 13 '05 #4
Thanks David,

I'll make a note of this in case it happens again?

Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Chris Cioffi | last post by:
I started writing this list because I wanted to have definite points to base a comparison on and as the starting point of writing something myself. After looking around, I think it would be a...
4
by: Jonathan Fine | last post by:
Hi I'm looking for a simple Python + Tk text editor. I want it as a building block/starting point. I need basic functions only: open a file, save a file, new file etc. It has to be open...
0
by: Dave | last post by:
Hi everyone, (I already posted this to the VS.NET IDE news group without any responses, so I'm attempting one more time in this group) The issue I'm having is occuring in the IDE of VS.NET...
0
by: JV | last post by:
In the SQL Command editor (click on a data adapter, in property window find the SELECT command property, drill down to the CommandText sub-property and click the button to edit) if you use a UNION...
2
by: Edward Diener | last post by:
In C++ an overridden virtual function in a derived class must have the exact same signature of the function which is overridden in the base class, except for the return type which may return a...
4
by: David Lozzi | last post by:
Howdy, I'm using a WYSIWYG editor called TinyMCE. When I edit some text and then save it back to my SQL server using a SQLCommand, all HTML characters are changed to HTML code, i.e. &gt;strong&lt;...
16
by: Jim Langston | last post by:
I know that functions starting with an underscore, or two underscores, are reserved by the compiler/c++ and should not be used by the user and may cause undefined behavior. My question is, how...
13
by: Bryan | last post by:
I am developing a VB project in VS2005 that has SP2 installed. This is the process that is causing a problem: Open VS2005, open the project Write some code in the code editor Run the project in...
19
by: Eric S. Johansson | last post by:
Almar Klein wrote: there's nothing like self interest to drive one's initiative. :-) 14 years with speech recognition and counting. I'm so looking to my 15th anniversary of being injured next...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.