View Single Post
  #3  
Old April 20th, 2010, 01:49 PM posted to microsoft.public.access.forms
Gil Silva
external usenet poster
 
Posts: 4
Default Form not carrying names to table behind the subform.

Why do you want to store the names redundantly in a second table?
Ans: The main table contains new hires and new report-ins. If they do not
travel to specific places in the three years and they leave the organization,
they are deleted from the database. They are required to take class prior to
traveling to specific places. The info is to be maintained to determine
sizes of class and historically who attended to budget for future type
classes. If I delete names off the master file I loose the names in the
tbl_class when I run a query. Other words the tbl_class should far exceed
the number of records in the main table. Looking the Properties Data tab
the Class form is:
Link Master Fields ID
Link Child Fields ID
Filter on Empty Master Yes
Enable Yes
Locked No

There is no primary key in master and no primary key in tbl_class because I
have to delete records in the master if no activity.
The tables are tbl_members and tbl_class
tbl_members (relevant fields) ID, Last_Name, First_Name
tbl_class (relevant fields) ID, LastName, First_Name, ClassDate

There is another subform on the main form which displays trips (tbl_trips)
and that is working fine but it does not contain names, just ID because if
the members take trips the record is saved and not deleted so I can do the
query you mentioned.

Tha tables are not related except tbl_trips and tbl_members. They show
relationships to the ID in both tables.

Hope I supplied what you requested.
Thanks for responding so quickly.
--
Gil Silva


"John W. Vinson" wrote:

On Mon, 19 Apr 2010 18:56:01 -0700, Gil Silva
wrote:

I have a subform linking to a tbl_class. The tbl_class has an ID, LastName,
FirstName, and ClassDate. ClassDate is date completed. (Access 2003)
The relationship is one on the main form to many on the subform. The ID is
populated from the main form and the ClassDate is entered.
However, the LastName and FirstName does not carry over from the main form.
I must be doing something wrong?


Just your expectation.

Relationships do NOT copy data from one table to another. That's not what
they're for and not how they work.

People leave the organization every three years or so. They take many
classes and their names should remain in the tbl_class for historical and
validation purpose.
How can I get the LastName and FirstName to populate the tbl_class after I
have entered the ClassDate but before I move onto the next record?
Appreciate any help!


Why do you want to store the names redundantly in a second table??? The name
should exist in a Student table *and noplace else*; you would use a query
joining the Student table to the Class table to see the name in conjunction
with class information.

What are your Tables, with relevant fieldnames?
What is each table's Primary Key?
How are the tables related?
--

John W. Vinson [MVP]
.