473,394 Members | 2,168 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Automatically add new records

Hi

I have a list of students undetaking various sports activities.
Currently the students are listed in tblGroupMembers and I manually go
into a form/subform and allocate each activity for each student pulling
the activity name from a combo sourced from tblActivities into a new
record within table- tblAssessmentActivity. There is a one-to-many
relationship between tblGroupMembers and tblAssessmentActivity so that
Student A ends up with records for Tennis, Golf, Football etc.

So- what I would like to do is "simply" list a student or a group of
students, list the series of activities that they will do and press go
and the database automatically creates all the new activity records per
student.

Is this possible? If so please advise.

thanks

David

Nov 13 '05 #1
5 2462
Yes this is possible. There are few ways to do it. The simplest is to
have an unbound combo field on your form of all your activities.
Select your group of students, select the activity they will be doing,
then have an append query add the data to your approriate table.

Nov 13 '05 #2
Dean- thanks for the reply but I'm still a bit lost on this- how would
an append query create a series of new records per student? I need to
create and relate a series of records to a series unique records that
already exist:

i.e. selecting a command would automatically give Fred, Wilma and
Daphne (each unique records in tblGroupMembers)- 3 new activites each-
Tennis, Football and Swimming - creating 9 new records in total (with
each sport being a unique record in the tblActivityProfile table)

many thanks

David

Nov 13 '05 #3
Each sport is unque to each student. Your primary key should include
two fields. The append query can be used to add a list of ALL sports
to a preselected student(s).

Nov 13 '05 #4
Again Dean thanks and I'm sorry I'm being so thick here but I can't see
how this works as the action would need to create new activity
assesment records before the actual activity field could be appended-
for each student.

i.e David, John, Mary are students (group members) with no activity
assessments. 10 activities are highlighted. A command is selected and
30 new records are created in the activity assessment table which is
linked to the student table- making 10 per student. i.e David has
related activity assessment records for football, golf, tennis etc as
does John and Mary.

Primary keys- GroupMemberID (in tblGroupMembers) linked to
GroupMemberID in tblActivityAssessment to create the one-to-many
relationship, with AcitivityAssessmentID as the primary key in this
table.

The activities themselves are held uniquely in a separate table-
tblActivities and all I'm doing there is looking up the data to create
the activity assessment records for each student.

I'm really grateful for any further advice.

thanks

David

Nov 13 '05 #5
You need a 3rd table that links students and the activities. So every
student will have ten records. The GroupMemberID and ActivitieID are
both the primary key in this table.

Nov 13 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: bss2004 | last post by:
Hi- I have a couple of pages on my asp.net site that take a few minutes to process after the user clicks the submit button. An example is a page that kicks off a Crystal Report that is printing a...
11
by: Matt | last post by:
Hi everyone, still pretty new to MySQL. I was wondering if there is a way to automatically filter records based on a mysql userlogin name?? I have serveral databases that I want to combine in...
11
by: Gary | last post by:
I'm using Access 2002. I have a field called Job No. It is a text (data type). The reason being that there is an "I" in front of each number i.e. I1234 I1235 etc The problem is that when...
0
by: deejayquai | last post by:
Hi I have a list of students undetaking various sports activities. Currently the students are listed in tblGroupMembers and I manually go into a form/subform and allocate each activity for each...
1
by: Johann Blake | last post by:
I have a dataset that contains a parent table and a child table. A DataRelation exists between the two. I was under the impression from reading the VS docs that when I filled the parent table, the...
11
by: bobdydd | last post by:
Hi Everybody Access 2000 Windows xp On a form with a single command button connected to a database of 1 thousand records. I would like to be able to press the command button and...
30
by: Charles Law | last post by:
Here's one that should probably have the sub-heading "I'm sure I asked this once before, but ...". Two users are both looking at the same data, from a database. One user changes the data and...
3
by: Iain | last post by:
How do I get a form to automatically refresh once (not continually using a timer). The scenario I have uses a parent table and a child table. (thanks to mmcarthy for indicating better termenology...
7
by: canajien | last post by:
How can I get a php page to automatically send all the contents in an email when it is generated? I managed to hack together a script that sends an email, but it will only send the 1st record...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.