C
Chris
Hi all,
Been banging my head off the wall for a couple of days
now. I was going to post a question here but I figured it
out eventually. So I've decided to share what I found in
case it helps someone searching in the future.
My database was opening when holding down the shift
key but crashing otherwise. It crashed consistently on
opening my user logon form (which was in the startup).
The only change I made was to add the line Option Explicit
at the top and it then worked fine.
The form had 3 small functions and none of them used any
variables without declaring them first. I don't know why
this fixed the problem but it did and I no longer get
the 'send report to microsoft' screen on loading the form.
It seems to be a pretty nasty crash for such a small
ommision. Why don't they just prevent you from not using
Option Explicit or make it the default setting for all new
modules? Anyway, I hope this helps someone
Regards,
Chris
Been banging my head off the wall for a couple of days
now. I was going to post a question here but I figured it
out eventually. So I've decided to share what I found in
case it helps someone searching in the future.
My database was opening when holding down the shift
key but crashing otherwise. It crashed consistently on
opening my user logon form (which was in the startup).
The only change I made was to add the line Option Explicit
at the top and it then worked fine.
The form had 3 small functions and none of them used any
variables without declaring them first. I don't know why
this fixed the problem but it did and I no longer get
the 'send report to microsoft' screen on loading the form.
It seems to be a pretty nasty crash for such a small
ommision. Why don't they just prevent you from not using
Option Explicit or make it the default setting for all new
modules? Anyway, I hope this helps someone
Regards,
Chris