Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access 2003 crashing on Windows 7

Status
Not open for further replies.

trevorwilliams2

Programmer
Mar 3, 2003
107
US
We have just purchased a number of new computers loaded with Windows 7 Pro.

With Office 2003 installed and all of the latest patches I am suddenly running into problems with Access crashing when it opens.

My main menu loads, then maximizes, and the second you click on any control, Access crashes. No error code just the "We're sorry for the inconvenience but Microsoft Access has encountered an error and has to close....”

This is common to the 4 PC's with 7 on them.

I have not had much luck finding an answer for this.

Is anybody else running into this?
 
Not having an available printer installed as default will cause this.

Gluais faicilleach le cupan làn
 
Default printers are installed & I'm using the office 11 object library.
The database opens fine when just going to the database window (shift) so I know that it has to do my main menu.

The main menu has some positioning of buttons etc. in the resize event. I suspect that this is what is irritating the DB.

Trying to get time on the offending machines has made this dfficult to debug.

 
Have you tried stepping through the code during startup? That might help narrow down the specific offending line(s). Easiest way to do that for a startup item is this:
[ol][li]In the VB Editor, find the OnLoad event, or whatever event you are using to trigger everything at startup.[/li]
[li]Place a break mark on a line that runs during startup, preferably early on in the process to be sure you catch the bad step(s). (To do so, simply left click just to the left of the line where you want to put the break mark. It'll add a dark red circle at the beginning of that line, and place dark red "highlighting" around the text.[/li]
[li]Save the database via the vb Editor's File-Save.[/li]
[li]Close and reopen the database[/li]
[li]Step through the code, using <F8>[/li][/ol]
 
Prior to checking the code you may want to see if the form itself is offending. Copy the form and remove the code. Then remove the class module by setting "hasModule" to false. See if this opens without any code.
 
Was this ever resolved? I am having similar issues with a PC with Windows 7 but the database is in Access 2007. When I load the main form, which is very complex, it tells me, several times, "No object in this control". Once I get through all the messages, it seems to run fine. This is only occuring on the machine with Windows 7 on it. The others are runing XP. I also get these messages quite often: The expression On Get Focus you entered as the event property setting produced the following error: Object or class does not support the set of events. The expression On Current you entered as the event property setting produced the following error: Object or class does not support the set of events.
 
BallunarCrew,

This is not the same issue for sure. You need to start your own thread. Access Crashing vs giving error messages is totally different.
 
Just to follow up my thread here.
Just got done upgrading to Access 2010. Problem solved.
 
Glad to hear your problem is resolved, trevor.

"But thanks be to God, which giveth us the victory through our Lord Jesus Christ." 1 Corinthians 15:57
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top