"(E-Mail Removed)" <(E-Mail Removed)> wrote in
news:e5f265b0-1997-4d79-bd25-(E-Mail Removed)
m:
> Hence my question - could it be the large number of combo boxes
> causing the error?
Absolutely.
> Does each combo box generate a "handle" when the
> form is openned (I ahve seen the term in other threads, but don't
> really know what they are)?
Assuming the rowsource is a SQL string and not a callback function
or a list, each combo box uses at least TWO table handles, one for
each table in the FROM clause of the SQL SELECT and one for the SQL
statement itself. So, this rowsource uses TWO table handles:
SELECT tblLookup.*
FROM tblLookup
If you have 74 combo boxes with that rowsource, you're using 148
table handles.
> Because I am using a tab control page,
> could ther be an issue with the majority of the controls on the
> form being "hidden' when only one page is being used?
They are not visible but they are still there.
As John Vinson points out, you don't explain how your form relates
to your data. It sounds like an unbound form, and I would suggest
that you instead use a bound form. In that case, you could use a
datasheet or continuous subform to edit the data, and there'd be
only one combo box defined (with an instance of it for each row of
your subform). It's also possible with an outer join to replicate
the list of all possible records before those records are created.
This form shows an example of it:
http://dfenton.com/DFA/examples/NKF/Meds.jpg
There are no actual records stored yet, but there's a list of
possible medications. The record is created as soon as you edit the
combo box to choose Yes/No/Unknown. You could do the same, with a
table of the places for the tournament linked via left join to the
table where the actual tournament records are created. The SQL is
just a little tricky and I'd have to look it up. If you're
interested I'll post it.
But, as John says, at this point, we need to talk data structure,
because that's the only way to understand how the interface you've
outlined is used, and thus, the only way we can ever suggest
workable solutions to the problem.
--
David W. Fenton
http://www.dfenton.com/
contact via website only
http://www.dfenton.com/DFA/