S
Sam Smith
I wonder if I am going insane. Across all recent versions
of Access I seem to have come across the following bug and
I just thought I would mention it to see if there is any
interest from MS to actually fix it.
The weird bug:
Every so often in forms coding I eventually get to a point
where I get an error in the same way as if I had a missing
reference but it has, in fact, nothing to do with that at
all except appears to be some sort of mystery internal
Access bug. The latest occurrence of this bug in detail:
I have a form with a sub form. On the event on one of the
text boxes in the sub form I have some simple code which
activates when the text box is double-clicked.
This is all working fine until the mystery internal bug
appears.
In changing some code I decide to make one variable
public. This then seems to break the double-click code. If
I remove the new variable and put the code back to how it
was the bug is still there. Every time I double click on
the text box in the subform I get the usual error that I
would get if I had a missing reference.
But it gets weirder (and more annoying).
If I import over the SAME CODE (identical in everyway)
from a backup - it works fine. If I try to run the old
code then it brings up the reference error. 2 pieces of
code that are identical to the Access developer but
internally must look different to Access.
Now, there is obviously a lot going on behind the scenes
in Access that us developers are not privy to and it is
clearly that something in the internal code of Access
itself is screwy. I have used Access since '97 and have
come across this weird reference bug in different guises
off and on since then. It doesn't happen very often -
perhaps once every 6 months. I do use Access every day so
perhaps only a few of us will trigger this.
Although I keep getting around it I just thought that it
might be nice if MS could be made aware of it and release
a patch - because when it occurs it is a real pain to
debug as it is not actually anything a normal developer
can fix as it is internal to Access.
If this could be fixed then it would make Access even more
perfect!
of Access I seem to have come across the following bug and
I just thought I would mention it to see if there is any
interest from MS to actually fix it.
The weird bug:
Every so often in forms coding I eventually get to a point
where I get an error in the same way as if I had a missing
reference but it has, in fact, nothing to do with that at
all except appears to be some sort of mystery internal
Access bug. The latest occurrence of this bug in detail:
I have a form with a sub form. On the event on one of the
text boxes in the sub form I have some simple code which
activates when the text box is double-clicked.
This is all working fine until the mystery internal bug
appears.
In changing some code I decide to make one variable
public. This then seems to break the double-click code. If
I remove the new variable and put the code back to how it
was the bug is still there. Every time I double click on
the text box in the subform I get the usual error that I
would get if I had a missing reference.
But it gets weirder (and more annoying).
If I import over the SAME CODE (identical in everyway)
from a backup - it works fine. If I try to run the old
code then it brings up the reference error. 2 pieces of
code that are identical to the Access developer but
internally must look different to Access.
Now, there is obviously a lot going on behind the scenes
in Access that us developers are not privy to and it is
clearly that something in the internal code of Access
itself is screwy. I have used Access since '97 and have
come across this weird reference bug in different guises
off and on since then. It doesn't happen very often -
perhaps once every 6 months. I do use Access every day so
perhaps only a few of us will trigger this.
Although I keep getting around it I just thought that it
might be nice if MS could be made aware of it and release
a patch - because when it occurs it is a real pain to
debug as it is not actually anything a normal developer
can fix as it is internal to Access.
If this could be fixed then it would make Access even more
perfect!
