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 do i add multiple records to table from 1 form entry?
I'm currently creating a database that assigns problems to people that could
solve them. I have a table called "employees" and one called "incident catagories". Since one incident may be solved by multiple people and since one person could solve multiple problems, the database is a many-to-many. Employees table contains a a unique ID called Cont ID. The Incident Catagories table contains a unique ID (for each incident) called IncCatID. To link the two tables to make the many-to-many relationship another table was made, where the data had to be inputted manually. This data assigned incidents to people and contained both the IncCatID and ContID. To make the database more versatile, a form was made that can add/edit employees in the employees table. The problem now is that a form or sub form is required to add or edit a new or current employees responsibility i.e. match the employee to the incident. I seriously require help in this matter urgently... I have tried almost everything i can think of. |
#2
|
|||
|
|||
How do i add multiple records to table from 1 form entry?
Bernard
We aren't there, so we don't know what all you've already tried. If you don't give the newsgroup readers a little more information, we may suggest the very things you've already tried! If you want to assign one/more employees to a specific incident, then consider using a main form/subform design. The main form would hold the incident-related information, and the subform would hold the employee-assignment information. You'd use your third (the junction/relation/many-to-many resolver) table as the source for the subform. You'd use a combo box for each form/record in the subform, and bind the combo box to the employee ID. Or maybe you've already tried that. If so, what happened, and why do you consider this design unworkable? -- More info, please ... Jeff Boyce Office/Access MVP "Bernard" wrote in message ... I'm currently creating a database that assigns problems to people that could solve them. I have a table called "employees" and one called "incident catagories". Since one incident may be solved by multiple people and since one person could solve multiple problems, the database is a many-to-many. Employees table contains a a unique ID called Cont ID. The Incident Catagories table contains a unique ID (for each incident) called IncCatID. To link the two tables to make the many-to-many relationship another table was made, where the data had to be inputted manually. This data assigned incidents to people and contained both the IncCatID and ContID. To make the database more versatile, a form was made that can add/edit employees in the employees table. The problem now is that a form or sub form is required to add or edit a new or current employees responsibility i.e. match the employee to the incident. I seriously require help in this matter urgently... I have tried almost everything i can think of. |
#3
|
|||
|
|||
How do i add multiple records to table from 1 form entry?
It sounds as if you actually need three tables.
1 for the Incidents 1 for the Employees 1 that designates which employees worked the incident tblIncident - tblAssignees one to many tblAssignees - tblEmployees many to one tblAssignees will basically be a table that grabs the ID of the incident and the ID of the Employee and ties it all together. Bernard wrote: I'm currently creating a database that assigns problems to people that could solve them. I have a table called "employees" and one called "incident catagories". Since one incident may be solved by multiple people and since one person could solve multiple problems, the database is a many-to-many. Employees table contains a a unique ID called Cont ID. The Incident Catagories table contains a unique ID (for each incident) called IncCatID. To link the two tables to make the many-to-many relationship another table was made, where the data had to be inputted manually. This data assigned incidents to people and contained both the IncCatID and ContID. To make the database more versatile, a form was made that can add/edit employees in the employees table. The problem now is that a form or sub form is required to add or edit a new or current employees responsibility i.e. match the employee to the incident. I seriously require help in this matter urgently... I have tried almost everything i can think of. |
#4
|
|||
|
|||
How do i add multiple records to table from 1 form entry?
hey,hey
sorry for the late reply.. Was on site. Anywya tried a lot of things including what has been suggested.. I think the best method for me now is to try and add multiple new records, assigning default values for each of the incidents in the incidents table. I now need to know how i can automatically add new records. What i need access to do: if i add in an employee in the form it must automatically add multiple records in my linking table... Anyw help in this will be greatly appreciated. \ Kind regards and wishing you all a merry x-mass Bernard "David C. Holley" wrote: It sounds as if you actually need three tables. 1 for the Incidents 1 for the Employees 1 that designates which employees worked the incident tblIncident - tblAssignees one to many tblAssignees - tblEmployees many to one tblAssignees will basically be a table that grabs the ID of the incident and the ID of the Employee and ties it all together. Bernard wrote: I'm currently creating a database that assigns problems to people that could solve them. I have a table called "employees" and one called "incident catagories". Since one incident may be solved by multiple people and since one person could solve multiple problems, the database is a many-to-many. Employees table contains a a unique ID called Cont ID. The Incident Catagories table contains a unique ID (for each incident) called IncCatID. To link the two tables to make the many-to-many relationship another table was made, where the data had to be inputted manually. This data assigned incidents to people and contained both the IncCatID and ContID. To make the database more versatile, a form was made that can add/edit employees in the employees table. The problem now is that a form or sub form is required to add or edit a new or current employees responsibility i.e. match the employee to the incident. I seriously require help in this matter urgently... I have tried almost everything i can think of. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Multiple Options Group | Patty Stoddard | Using Forms | 19 | August 4th, 2005 02:30 PM |
Can I link 1 form to several tables? | Mico | Using Forms | 7 | July 6th, 2005 07:36 PM |
Need Help In Printing Current Record in Specific Report | RNUSZ@OKDPS | Setting Up & Running Reports | 1 | May 16th, 2005 09:06 PM |
Access combo box-show name, not ID, in table? | write on | New Users | 30 | April 30th, 2005 09:11 PM |
dlookup | miaplacidus | Using Forms | 9 | August 5th, 2004 09:16 PM |