R
Ron Weiner
Gina
Marsh is correct you should fix the Dim, but it is not the reason for the
problem.
Also I notice that you routinely use code like
Set rs = CurrentDb.OpenRecordset(strSQL)
but rarely use code like
rs.Close
Set rs = Nothing
You should really get in the habit of closing and destroying all of the
objects you open and create. One of these days this sloppy coding practice
will come around and bite you where it really hurts.
Ron W
Marsh is correct you should fix the Dim, but it is not the reason for the
problem.
Also I notice that you routinely use code like
Set rs = CurrentDb.OpenRecordset(strSQL)
but rarely use code like
rs.Close
Set rs = Nothing
You should really get in the habit of closing and destroying all of the
objects you open and create. One of these days this sloppy coding practice
will come around and bite you where it really hurts.
Ron W
Gina said:Thanks Marsh,
I will gratefully look at all suggested aspects ....
wel I didn't know that the dim could be a reason ...
Gina
Marshall Barton said:[]Gina said:maybe I should mention I work with access 2k - but I don't know anything
else apart from a BUG ... iiiiii ...
setting a halt on each of the evnets they get called and values assigned
Thans so much for your time and good advice ....
well how do I decomile the code ??
for completion here's the rest of relevant code: []
In Module ErrorChecking :
Dim mlngSelStart, mlngSelLen As Long
Gina, I don't really have anything to add to Ron's excellent
suggestions, but I did notice the above Dim statement might
cause problems under some odd circumstances. I think it
should be:
Dim mlngSelStart As Long, mlngSelLen As Long
I don't use A2k, so this may be irrelevant, but make sure
that you have turned off the NameAutoCorrect feature.
If corruption has crept into your app, you may want to look
at:
http://www.granite.ab.ca/access/corruptmdbs.htm
http://www.granite.ab.ca/access/decompile.htm