Is the error message an exact and full quote? How many databases are
being opened during your session? Manually or via code?
-
Exact quote.
All are being opened by code.
How do I find out how many are open?
Here's the general situation:
There are many boolean variables associated with a result, with the user
being able to independently choose which ones are t/f. I want to be able to
display the status of the result upon the change of any of the variables.
Hence, for the code associated with each change option I have put in a sub
call to recompute the status, to wit:
Private Sub EDAYD_Click()
EDA = DateSerial(Year(EDA) - 1, Month(EDA), Day(EDA))
'DoCounts '<<<<<<<<<<<<<< this recomputes status.
End Sub
I have commented out a bunch of these (there are 26) and the error does not
show. But when not commented out, it seems that even before any of these
events are actuated, I get the error! There are other places where the sub
is called, but it remains these 26 that seem to be the problem. Seems nutty
to me.
If I knew how to count the open databases it would help me isolate the
problem. I have been assuming that when a form is closed the databases that
were used by that form's code are closed. Is that correct, or must I search
the entire application? Also, do other currently-active Access applications
affect this total?
Dick Cleaveland