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
|
|||
|
|||
adding new entries to table
I have three tables.
People - id is primary key Training - training as primary key People_Training - id and training as foreign key. I created a main form (people table) with a subform (People_Training table). For each person, all the training that they've taken is listed. I can only select the items that is already in the Training table. Is there any way to add a new training to the training table through the field from the subform and to have it updated for that person? Thanks. |
#2
|
|||
|
|||
If the Training field is Text (not AutoNumber), and it is represented by a
combo box in your subform, you can use the NotInList event procedure of the combo to add the new Training text to the Training table on the fly. Details and example in: NotInList: Adding values to lookup tables at: http://members.iinet.net.au/~allenbrowne/ser-27.html -- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "ashley" wrote in message ... I have three tables. People - id is primary key Training - training as primary key People_Training - id and training as foreign key. I created a main form (people table) with a subform (People_Training table). For each person, all the training that they've taken is listed. I can only select the items that is already in the Training table. Is there any way to add a new training to the training table through the field from the subform and to have it updated for that person? Thanks. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Autonumber | Ally H. | General Discussion | 7 | August 27th, 2004 04:51 PM |
Semicolon delimited text query help | Al Guerra | Running & Setting Up Queries | 3 | August 12th, 2004 11:50 AM |
adding column to preexisting pivot table | btcdeb | General Discussion | 5 | August 9th, 2004 12:56 AM |
Complicated Databse w/many relationships | Søren | Database Design | 7 | July 13th, 2004 05:41 AM |
Table design - multiple entries for a field | Carrie | Database Design | 1 | May 22nd, 2004 04:02 AM |