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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

link one form to many tables

Status
Not open for further replies.

tomhughes

Vendor
Aug 8, 2001
233
US
I would like to link one form to many tables. I am using a combo box to select the table to link to. The table that is linked to shows up in a text box on the form. Is this possible? If possible I would like to use Visual Basic programing.
 
Why? You don't like making forms for each table?
More technical questions: Each table should have DIFFERENT fields. Ever hear of Normalization? So, if the user selected a table from a dropdown, the textboxes would have to reflect the underlying source. So, you could create a form with all the fields of every table and then hide them. Then when someone selects a table, change the source property for the form and make just those fields visible. Waste of time.
What are you trying to accomplish???
 
fneily - It sounds to me like you are mad at my request. Is that true ???
 
Why do you have these ten tables? Could the data from them not be stored in a single table (if you have same columns, the answer is yes). Then you could choose a filter for what records are actually displayed via your drop down list.

Good Luck,

Alex

Ignorance of certain subjects is a great part of wisdom
 
AlexCuse - Actually I could have 26 tables, or I could put everything into one large table. I'm not sure of the pros and cons of the two different ways to do this. Evidently my suggestion of viewing two tables on one form is not the way things are done, going by fneily's response.If I have one large table I need to view two different records from different fields at the same time.If I have 26 tables I want to view two different tables on one form. Do yoiu have any suggestions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top