A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

adding new entries to table



 
 
Thread Tools Display Modes
  #1  
Old October 6th, 2004, 03:29 PM
ashley
external usenet poster
 
Posts: n/a
Default 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  
Old October 6th, 2004, 04:00 PM
Allen Browne
external usenet poster
 
Posts: n/a
Default

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 04:17 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.