Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shown a table in a form

Status
Not open for further replies.

jack1080

Programmer
Jun 2, 2007
34
MY
I have a table called table1,table2
And I have a form called form1
And I have a dropdownlist that populate all the tables

Now what I want to do is, when the user select the table name of dropdownlist, the table should shown in the form just below the drop down list.
How the table shown is exactly look like when we directly open the table. User are able to see the column name, update the table field, add new table field, etc. The only different is, the table is contained within the form. So, what control should I use? How to bind the table and the control dynamically?
 
You can use a subform control and set its Source Object to the selected table. There is a sample of setting a Source Object to a query at You should be able to change the "query" to "table".

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
And also change the form view (of the subform) to "Datasheet".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top