I didn't realise your list of tables was so dynamic. Forget about the
table
of tables idea and use the following SQL statement as the RowSource for
your
combobox:
Select [Name] from MSysObjects where [Type]=1 and [Name] like "BckDay *";
If the BckDay tables are linked from another database, change [Type]=1 to
[Type]=6.
Note that this uses an undocumented system table, and so it is, strictly
speaking, unsupported. However, it will work in any version of Access
that
has been released so far

--
Good Luck!
Graham Mandeno [Access MVP]
Auckland, New Zealand
GM,
Thank you for reply.
Work fine with first solution.
Now, I have another difficult:
How to write automatically the tables names inside new created table
T_BckListTables
(The array names are generated automatically by another database and
are
of
the type BckDay 19-11-2006 13:56:33)
Thanks more one time.
an
:
Hi an
The data displayed in a form is defined by the RecordSource property
of
the
form. You can change the RecordSource in code whenever you like and
new
data will be displayed (provided the new recordsource has the same
field
names.
I suggest you make a table that lists the candidate tables and a
description
of the data (two fields). Use this table as the RowSource of your
combo
box. Then, in the AfterUpdate event of the combo box, set the form's
RecordSource, like this:
Me.RecordSource = Me!cboSelectTable
Or, perhaps you might like to specify some more options in a SQL
statement:
Me.RecordSource = "Select * from [" & Me!cboSelectTable _
& "] order by CustomerName;"
--
Good Luck!
Graham Mandeno [Access MVP]
Auckland, New Zealand
Hi!
I have a DB with bck tables with same fields.
How is possible, through one combobox, to choose where table if must
base
one form to review the data in this form?
Thanks in advance.
an