SeadnaS
Programmer
- May 30, 2011
- 214
Hi,
I have a combobox that lists all the tables on my database I want to be able to select a table from the combo box and have the combo box change the forms record source to that table. I have set the control source of the combo to =[RecordSource] and the row source to
SELECT MSysObjects.Name FROM MsysObjects WHERE (Left$([Name],1)<>"~") And (Left$([Name],4)<>"Msys") And (MSysObjects.Type)=1 ORDER BY MSysObjects.Name;
to list the tables. I get a list of the tables ok and it shows the table the form is currently using when it opens, but it will not let me change the control source to another table it gives me this msg on the status bar: "Control can't be edited; It's bound to the expression '[RecordSource]'".
Thanks for any help received.
I have a combobox that lists all the tables on my database I want to be able to select a table from the combo box and have the combo box change the forms record source to that table. I have set the control source of the combo to =[RecordSource] and the row source to
SELECT MSysObjects.Name FROM MsysObjects WHERE (Left$([Name],1)<>"~") And (Left$([Name],4)<>"Msys") And (MSysObjects.Type)=1 ORDER BY MSysObjects.Name;
to list the tables. I get a list of the tables ok and it shows the table the form is currently using when it opens, but it will not let me change the control source to another table it gives me this msg on the status bar: "Control can't be edited; It's bound to the expression '[RecordSource]'".
Thanks for any help received.