-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Use a query to get the names of the tables instead of a value list:
SELECT name
FROM msysobjects
WHERE flags = 0 AND type = 1
To get the column names of the selected table you can use the DAO
TableDef's Fields collection. E.g.:
Dim db As DAO.Database
Dim fld As DAO.field
Dim strTable As String
Set db = CurrentDb
strTable = Me!cboTables
For Each fld In db.TableDefs(strTable).Fields
Debug.Print fld.Name
' If you want to load the field names into a combo box:
' Me!cboFields.AddItem fld.Name
Next fld
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv
iQA/AwUBQ9fuzIechKqOuFEgEQJyDACfRVhBEacptIx9+kxHxOnvUt NIWxgAoIb+
88I2gZS1F3TG95OL6g47pYyZ
=iGNf
-----END PGP SIGNATURE-----
EiEiO wrote:
Hi All,
I am trying to create an Import Form to "Map Fields" for importing many
different tables into 1.
The form I created has 2 columns of comboboxes ( A - AA) thru (J - JJ).
The rowsource for comboboxes with the double letters "AA" is the table
I am importing into and the Row Source Type is Field List.
I need to :
1) Select a table to import FROM
2) Make the selected table Fieldlist available in the single letter "A"
comboboxes
3) Be able to save this "Map"
ANY help is appreciated
EiEiO