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 » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

options in field entry from another table



 
 
Thread Tools Display Modes
  #1  
Old November 13th, 2004, 09:09 AM
external usenet poster
 
Posts: n/a
Default options in field entry from another table

I am "getting started" in MS Access, but not in programming.

My problem, a database for entering transactions about trainee teachers that
do some supervised lessons in schools.
Can be "dirty programmed" in terms of interface, but should be easy to use
by me, catch some errors etc

Table Trainee: // 10 records
ID : auto number and main index
name
school1 : text
school2 : text // some trainees may be assigned to 2 schools, and give
lessons in both of them
...


Table Lessons: // lots of records!
ID: same as ID in Trainee
date:
school: // one of the two schools the trainee is assigne to *** here is
my problem ***
class: text // free
...

Naturally a relationship established between Lessons.ID to Trainee.ID
I created a form for input of "Lessons" transactions, that displays the
Trainee.name when ID is entered.
*********************************************
What I want to do, but don't know how:
*********************************************
a) pressing on the name field to show a dropdown list with the name's in
Trainee to choose from, which will update the Lessons.ID. This is not so
important (there are only 10 entries in the Trainee table, and can have them
printed together with the ID's. Displaying the name solves the problem of
making an error

b) pressing on the school field, display a list or combo with
Trainee.school1 and Trainee.school2 to choose from and update the
transaction.
This is my main problem!!!

Any help?

TIA

Alberto
  #2  
Old November 13th, 2004, 12:44 PM
MacDermott
external usenet poster
 
Posts: n/a
Default

AH, the problems of non-normalized data!

How about this approach?
tblTrainee - Identifies trainee, includes TraineeID, no fields for
school.
tblSchool - A list of all possible schools, including SchoolID
tblTrainee_School - 2 fields, TraineeID and SchoolID
An entry in this school indicates this trainee is assigned to this
school
tblLessons - pretty much as designed, with foreign keys for TraineeID
and SchoolID

Now, your form will be based on tblLessons, and have a combobox for Trainee,
based on tblTrainee.
It can also have a combobox for School, based on tblSchool.
If you like, you can filter the School combobox when something is
entered in the Trainee combobox, so the School combobox shows only schools
available for that trainee.

Please post back if you need details on implementing any of this.
HTH
- Turtle

wrote in message
...
I am "getting started" in MS Access, but not in programming.

My problem, a database for entering transactions about trainee teachers

that
do some supervised lessons in schools.
Can be "dirty programmed" in terms of interface, but should be easy to use
by me, catch some errors etc

Table Trainee: // 10 records
ID : auto number and main index
name
school1 : text
school2 : text // some trainees may be assigned to 2 schools, and give
lessons in both of them
...


Table Lessons: // lots of records!
ID: same as ID in Trainee
date:
school: // one of the two schools the trainee is assigne to *** here is
my problem ***
class: text // free
...

Naturally a relationship established between Lessons.ID to Trainee.ID
I created a form for input of "Lessons" transactions, that displays the
Trainee.name when ID is entered.
*********************************************
What I want to do, but don't know how:
*********************************************
a) pressing on the name field to show a dropdown list with the name's in
Trainee to choose from, which will update the Lessons.ID. This is not so
important (there are only 10 entries in the Trainee table, and can have

them
printed together with the ID's. Displaying the name solves the problem of
making an error

b) pressing on the school field, display a list or combo with
Trainee.school1 and Trainee.school2 to choose from and update the
transaction.
This is my main problem!!!

Any help?

TIA

Alberto



 




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
Access & OleDb - generating schema changes, problem with identity/counter fields. Thomas Tomiczek [MVP] Database Design 9 November 5th, 2004 10:32 AM
Newbie? Do I use Report or Query John Egan New Users 11 June 28th, 2004 08:31 PM
NUMBERING the pages Bob New Users 7 June 14th, 2004 12:20 AM
Text (not headings) that needs to appear in TOC Linda Formatting Long Documents 2 June 4th, 2004 08:03 PM
Make a field lookup dependent on the value in another field of a record? Susan A Database Design 8 May 22nd, 2004 09:10 PM


All times are GMT +1. The time now is 11:14 AM.


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