G
Guest
I am having an issue with a form that I am hoping someone can help me solve,
or at least point me in a direction so that I can arrive at a solution myself.
Well I guess to begin with I am running Access 2003 on Windows XP.
My issue is, as stated in the subject line, that I am getting the “Can not
open any more databases†error after using a certain form I have created for
sometimes a very very short period of time. Sometimes I can only click three
combo boxes.
This form is an unbound form with 48 subforms. The 48 subforms are actually
the same subform, just inserted 48 times. I realize this sounds reasonably
insane, but let me give you more info as to why this is the way it is. It is
a weekly work schedule for 8 employees over 6 days of the week. I have
linked each individual occurrence of this subform to two text boxes on the
parent form, one for a date, one for a name. I have names running down the
left hand side and dates running along the top, which are in the parent form.
Each subform has about 4 combo boxes plus a whole slew of other controls,
well between 15 and 25 I would say. I also have a few other things going on
in the parent form as well that references the child forms. I hope this
gives you something at least. I am happy to give more info on this if need
be.
I understand that this error is caused by a limitation on the amount of
“connections†I can have. My ultimate question is how do I fix it. I have
read that I can replace my Dcounts, and Dlookups with other methods, but I
did bit of this, but it did not seem to alleviate the issue much at all. I
used recordcount instead of dcount, and closed the recordset after the count.
Are there alternatives to combo boxes? Like programmatically creating one.
I notice that I can test the form by just going through and clicking the drop
down arrow next to each combo box in each subform to replicate this error
message.(sometimes I get the error message after just clicking one combo box
if I scroll parent form to view all 48 subfrms first.) My assumption is
that I am opening a “connection†accessing those tables over and over again,
without closing those connections with each combo box. So my thoughts were
that maybe I could create custom combo boxes so that I can open the
connection only when needed and close the connections when not, thereby,
decreasing the frequency of the error, or eliminating the error.
Thanks a bunch to all those who will give me a hand with this one.
or at least point me in a direction so that I can arrive at a solution myself.
Well I guess to begin with I am running Access 2003 on Windows XP.
My issue is, as stated in the subject line, that I am getting the “Can not
open any more databases†error after using a certain form I have created for
sometimes a very very short period of time. Sometimes I can only click three
combo boxes.
This form is an unbound form with 48 subforms. The 48 subforms are actually
the same subform, just inserted 48 times. I realize this sounds reasonably
insane, but let me give you more info as to why this is the way it is. It is
a weekly work schedule for 8 employees over 6 days of the week. I have
linked each individual occurrence of this subform to two text boxes on the
parent form, one for a date, one for a name. I have names running down the
left hand side and dates running along the top, which are in the parent form.
Each subform has about 4 combo boxes plus a whole slew of other controls,
well between 15 and 25 I would say. I also have a few other things going on
in the parent form as well that references the child forms. I hope this
gives you something at least. I am happy to give more info on this if need
be.
I understand that this error is caused by a limitation on the amount of
“connections†I can have. My ultimate question is how do I fix it. I have
read that I can replace my Dcounts, and Dlookups with other methods, but I
did bit of this, but it did not seem to alleviate the issue much at all. I
used recordcount instead of dcount, and closed the recordset after the count.
Are there alternatives to combo boxes? Like programmatically creating one.
I notice that I can test the form by just going through and clicking the drop
down arrow next to each combo box in each subform to replicate this error
message.(sometimes I get the error message after just clicking one combo box
if I scroll parent form to view all 48 subfrms first.) My assumption is
that I am opening a “connection†accessing those tables over and over again,
without closing those connections with each combo box. So my thoughts were
that maybe I could create custom combo boxes so that I can open the
connection only when needed and close the connections when not, thereby,
decreasing the frequency of the error, or eliminating the error.
Thanks a bunch to all those who will give me a hand with this one.