Let's say you have a control ComboBox1 with the list of the table names.
Using the combo box's After Update event:
Me.RecordSource = Me.ComboBox1
Me.Requery
This assumes that the form is bound to the table and the combobox is an
unbound control.
So start by creating a new form based on one of the tables (let the wizard
construct it for you). Go into design view of the form and create a combo
box control in the form header. Populate the combo box with the names of the
different tables. Then select [Event Procedure] in the combo box's After
Update Event, select the [...] button at the end of the line, and enter the
above two lines of code. Try it, you'll like it.
Isaac said:
Thanks for the reply.
Each table will be EXACTLY the same!!
And how would I do that......
"use the result of the prompt to change the form property Record Source"
What would the code be and where do I have to put it?
Isaac
Yes, use the result of the prompt to change the form property Record
Source
[quoted text clipped - 7 lines]