If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
How to change properties in a linked table?
Hi all. I have several tables in my database and some are linked. I want
to modify Table1, field4 to have a lookup to another table I created (Table2). However, the Table1will not let me make any changes to any of the fields saying that you cannot modify a linked table. So how do I do this? TIA Robert |
#2
|
|||
|
|||
On Thu, 2 Dec 2004 15:45:02 -0800, "Robert Johnson"
wrote: Hi all. I have several tables in my database and some are linked. I want to modify Table1, field4 to have a lookup to another table I created (Table2). However, the Table1will not let me make any changes to any of the fields saying that you cannot modify a linked table. So how do I do this? Short answer: Open the backend database directly and make the change there. Longer answer. Don't. Lookup Fields are of *very* limited value and have many disadvantages: http://www.mvps.org/access/lookupfields.htm Instead, create a Form bound to Table1, and put a Combo Box based on Table2 on the form to edit and display the looked-up value. It is not necessary to change the table design to do this. John W. Vinson[MVP] Join the online Access Chats Tuesday 11am EDT - Thursday 3:30pm EDT http://community.compuserve.com/msdevapps |
#3
|
|||
|
|||
"John Vinson" wrote in message ... On Thu, 2 Dec 2004 15:45:02 -0800, "Robert Johnson" wrote: Hi all. I have several tables in my database and some are linked. I want to modify Table1, field4 to have a lookup to another table I created (Table2). However, the Table1will not let me make any changes to any of the fields saying that you cannot modify a linked table. So how do I do this? Short answer: Open the backend database directly and make the change there. Longer answer. Don't. Lookup Fields are of *very* limited value and have many disadvantages: http://www.mvps.org/access/lookupfields.htm Instead, create a Form bound to Table1, and put a Combo Box based on Table2 on the form to edit and display the looked-up value. It is not necessary to change the table design to do this. John W. Vinson[MVP] Join the online Access Chats Tuesday 11am EDT - Thursday 3:30pm EDT http://community.compuserve.com/msdevapps OK, how do I get the data from the combo box to the field in table1 that I want to update? Robert |
#4
|
|||
|
|||
The field that is to be edited should be in the query that serves as the
form's RecordSource. The combo box should use a Row Source query that returns the different values that can be selected. -- Ken Snell MS ACCESS MVP "Robert Johnson" wrote in message ... "John Vinson" wrote in message ... On Thu, 2 Dec 2004 15:45:02 -0800, "Robert Johnson" wrote: Hi all. I have several tables in my database and some are linked. I want to modify Table1, field4 to have a lookup to another table I created (Table2). However, the Table1will not let me make any changes to any of the fields saying that you cannot modify a linked table. So how do I do this? Short answer: Open the backend database directly and make the change there. Longer answer. Don't. Lookup Fields are of *very* limited value and have many disadvantages: http://www.mvps.org/access/lookupfields.htm Instead, create a Form bound to Table1, and put a Combo Box based on Table2 on the form to edit and display the looked-up value. It is not necessary to change the table design to do this. John W. Vinson[MVP] Join the online Access Chats Tuesday 11am EDT - Thursday 3:30pm EDT http://community.compuserve.com/msdevapps OK, how do I get the data from the combo box to the field in table1 that I want to update? Robert |
#5
|
|||
|
|||
On Thu, 2 Dec 2004 16:59:25 -0800, "Robert Johnson"
wrote: OK, how do I get the data from the combo box to the field in table1 that I want to update? A Combo Box *gets* data from its Rowsource - Table2, or a query sorting the records in Table2; and it *puts* data from the selected record into its ControlSource field. If you have a Form based on table1, just include the field that you want to update in the Form's recordsource query (it will be there automatically if the table is the recordsource); just use the Combo Box wizard to set the combo box's control source to that field. No code or other action is needed. John W. Vinson[MVP] Join the online Access Chats Tuesday 11am EDT - Thursday 3:30pm EDT http://community.compuserve.com/msdevapps |
#6
|
|||
|
|||
"Ken Snell [MVP]" wrote in message ... The field that is to be edited should be in the query that serves as the form's RecordSource. The combo box should use a Row Source query that returns the different values that can be selected. -- Ken Snell MS ACCESS MVP "Robert Johnson" wrote in message ... "John Vinson" wrote in message ... On Thu, 2 Dec 2004 15:45:02 -0800, "Robert Johnson" wrote: Hi all. I have several tables in my database and some are linked. I want to modify Table1, field4 to have a lookup to another table I created (Table2). However, the Table1will not let me make any changes to any of the fields saying that you cannot modify a linked table. So how do I do this? Short answer: Open the backend database directly and make the change there. Longer answer. Don't. Lookup Fields are of *very* limited value and have many disadvantages: http://www.mvps.org/access/lookupfields.htm Instead, create a Form bound to Table1, and put a Combo Box based on Table2 on the form to edit and display the looked-up value. It is not necessary to change the table design to do this. John W. Vinson[MVP] Join the online Access Chats Tuesday 11am EDT - Thursday 3:30pm EDT http://community.compuserve.com/msdevapps OK, how do I get the data from the combo box to the field in table1 that I want to update? Robert Thanks for the reply |
#7
|
|||
|
|||
"John Vinson" wrote in message ... On Thu, 2 Dec 2004 16:59:25 -0800, "Robert Johnson" wrote: OK, how do I get the data from the combo box to the field in table1 that I want to update? A Combo Box *gets* data from its Rowsource - Table2, or a query sorting the records in Table2; and it *puts* data from the selected record into its ControlSource field. If you have a Form based on table1, just include the field that you want to update in the Form's recordsource query (it will be there automatically if the table is the recordsource); just use the Combo Box wizard to set the combo box's control source to that field. No code or other action is needed. John W. Vinson[MVP] Join the online Access Chats Tuesday 11am EDT - Thursday 3:30pm EDT http://community.compuserve.com/msdevapps Thanks for the reply... I understand now how it works. Robert |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
transpose | john | Using Forms | 1 | November 24th, 2004 06:16 PM |
Here's a shocker | Mike Labosh | General Discussion | 2 | October 26th, 2004 05:04 PM |
Table Wizard Does Not Set Relationship if Foreign Key and Primary Key Name Do Not Match Exactly in Case. | HDW | Database Design | 3 | October 16th, 2004 03:42 AM |
Autonumber | Ally H. | General Discussion | 7 | August 27th, 2004 04:51 PM |
resize table from A4 size to A5 | ims | New Users | 3 | June 9th, 2004 01:05 AM |