Populate Datasheet Combo Box with Field List

D

DevDaniel

I have: A table containing fields (ID, TableName, FieldName). Some of the
fields are combo boxes.

I want: In datasheet view, when I open the combo box for FieldName, the
combo box populates with fields from the table listed in the TableName field.
 
J

Jeff Boyce

It sounds like you are trying to do this directly in the table (using a
datasheet view). If so, stop now!

Access tables store data, Access forms (and reports) display data.

Use an Access form with two comboboxes. The first lets you select the
TableName. In the AfterUpdate of that first combobox, requery the second
combobox, which you will based on a query that points to the first to
determine TableName!

Regards

Jeff Boyce
Microsoft Office/Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top