?
Solved

multiple entries in a form and a table

Posted on 2013-10-30
6
Medium Priority
?
235 Views
Last Modified: 2013-10-31
Hi,

I have a table with some fields: Training name, training time, and people.

My problem is that in the people field can exist more than one person and I want to have the ability to filter by people and enter the information of the people in a form. Any idea?
0
Comment
Question by:joyacv2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 19

Assisted Solution

by:Ken Butters
Ken Butters earned 2000 total points
ID: 39612838
If it would be a better design to have a 'normalized' table.  By normalized I mean that a given field does not contain multiple things... like multiple names.

In this case I would design it as :

1) Training Table --- Which holds things that pertain to the Training.  Like the location, time, subject etc.

2) People Table -- Which hold things that pertain to people, like first Name / last Name etc.

3) An 'Associate' table.  This table would be used to define your relationship between the people and the Training.  one row in this table would typically consist of an ID from the Training table, and an ID from the people table.  This would then be used to define which people are taking what training.

A common name for this type of relationship is a "Many-to-Many" relationship.

Once you have your tables and the relationships built, then you would create a query that gives you the results that you are looking for, and your form would be based on the new query, not on any of the tables.
0
 
LVL 1

Author Comment

by:joyacv2
ID: 39612850
HI,

But what can I do with the form, where I enter in the form the list of participants. In the form I need to specify the training and the participants?
0
 
LVL 19

Assisted Solution

by:Ken Butters
Ken Butters earned 2000 total points
ID: 39612875
Sounds like you form you want is "Training" based... meaning that your focus is mostly on setting up a training class?

One way to solution that would be to create form that is centered on the Training (it can be sourced on the training table), and a subform that lists the people that can be added to the training class.

here is an example of this:

http://ms-access-tips.blogspot.com/2012/02/creating-form-for-many-to-many.html
0
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
LVL 1

Author Comment

by:joyacv2
ID: 39612894
sorry, but I don't understand because the only thing that I need is to create a field that accepts many person names in the form? How I can use a subform of this without making relationships between the tables?
0
 
LVL 19

Accepted Solution

by:
Ken Butters earned 2000 total points
ID: 39613264
You cannot create a sub-form like I descirbed without making relationships between the tables.

Is there some reason you cannot, or do not want to create the necessary tables?
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 39614068
joyacv2, (No Points wanted)

buttersk is correct, your data is not formatted properly to do what you are asking.

If one "training" can have a many "people" (and conversely, one Person can have many "trainings") Then your design need to be a bit more robust and flexible.

This is why you should always ask if your design is correct before you design your forms.

If you are new to database design (keys, relationships, ...etc), it will take a while to get this design up and running.
What buttersk  posted is the standard why of setting this up, so please continue working with them to get this set up....
But once you do, ...things like what you are asking here will be "easy" instead of difficult.

The good news is that there is a fairly good feature called a "Multivalued Field" (in Access 2007 and higher) to make this a lot easier to do...
See here for more info:
http://office.microsoft.com/en-us/access-help/guide-to-multivalued-fields-HA001233722.aspx

;-)

JeffCoachman
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question