From: Jamo on

--
Center for technica education

I have Two Tables ,a Student Name Table with Two Fields, Student Id and
Student Name the other table is a Rubic Table and has the same two fields
along with other fields. I have created a form with a combo box(Names) on the
form and I am trying to get the Name and the Student Id to be entered into
the into the Rubic Table fields but I can't seem to get the Student Id to be
entered. I know I am doing something stupid but I can't seem to make it work.
Thank you in advance for all the help. You guys are great.
From: Tom van Stiphout on
On Mon, 17 May 2010 15:18:01 -0700, Jamo
<Jamo(a)discussions.microsoft.com> wrote:

You have an incorrect database design. The StudentName field should
only be in the Students table.
Then creating a dropdown which now only has to populate
tblRubic.StudentID is simple.

-Tom.
Microsoft Access MVP



I have Two Tables ,a Student Name Table with Two Fields, Student Id
and
Student Name the other table is a Rubic Table and has the same two
fields
along with other fields. I have created a form with a combo box(Names)
on the
form and I am trying to get the Name and the Student Id to be entered
into
the into the Rubic Table fields but I can't seem to get the Student Id
to be
entered. I know I am doing something stupid but I can't seem to make
it work.
Thank you in advance for all the help. You guys are great.
From: Jamo on
Tom:
Thank you for the replay ,however the reason that I have both the Student
Id and the student name in the form is that the teacher entering the data
does not know the student id but does know the students name.The reason the
the student Id is there also in case two student have the same name. Can I do
it??
--
Center for technica education


"Tom van Stiphout" wrote:

> On Mon, 17 May 2010 15:18:01 -0700, Jamo
> <Jamo(a)discussions.microsoft.com> wrote:
>
> You have an incorrect database design. The StudentName field should
> only be in the Students table.
> Then creating a dropdown which now only has to populate
> tblRubic.StudentID is simple.
>
> -Tom.
> Microsoft Access MVP
>
>
>
> I have Two Tables ,a Student Name Table with Two Fields, Student Id
> and
> Student Name the other table is a Rubic Table and has the same two
> fields
> along with other fields. I have created a form with a combo box(Names)
> on the
> form and I am trying to get the Name and the Student Id to be entered
> into
> the into the Rubic Table fields but I can't seem to get the Student Id
> to be
> entered. I know I am doing something stupid but I can't seem to make
> it work.
> Thank you in advance for all the help. You guys are great.
> .
>
From: Steve on
Jamo,

I concur with Tom that your design of the tables is incorrect. Please
explain what the fields beside student name and StudentID are in the Rubic
table so I can suggest a better design of your tables. Are the Rubic rable
fields dated so you enter them throughout the school year?

Steve
santus(a)penn.com


"Jamo" <Jamo(a)discussions.microsoft.com> wrote in message
news:DFC8ACB7-F8AD-49E7-A19D-BA872FCF2CEE(a)microsoft.com...
>
> --
> Center for technica education
>
> I have Two Tables ,a Student Name Table with Two Fields, Student Id and
> Student Name the other table is a Rubic Table and has the same two fields
> along with other fields. I have created a form with a combo box(Names) on
> the
> form and I am trying to get the Name and the Student Id to be entered into
> the into the Rubic Table fields but I can't seem to get the Student Id to
> be
> entered. I know I am doing something stupid but I can't seem to make it
> work.
> Thank you in advance for all the help. You guys are great.


From: John W. Vinson on
On Fri, 21 May 2010 14:35:01 -0700, Jamo <Jamo(a)discussions.microsoft.com>
wrote:

>Tom:
> Thank you for the replay ,however the reason that I have both the Student
>Id and the student name in the form is that the teacher entering the data
>does not know the student id but does know the students name.The reason the
>the student Id is there also in case two student have the same name. Can I do
>it??

The student *name* should only be in the student table.

That doesn't mean it can't be on the form! The form is just a window, a tool;
it's not the table.

Normally one would have a Student table with a unique StudentID, LastName,
FirstName, *and other identifying information*. On the Form you would have one
or more combo boxes, bound to the StudentID, displaying the name and (when
dropped down) other identifying information - grade or class name, home
address, StudentID, whatever is useful in your circumstances.

in your example... if the teacher doesn't know the ID, what help is it to have
two records in the form both showing Mike Smith?
--

John W. Vinson [MVP]
 |  Next  |  Last
Pages: 1 2
Prev: Tracking Log
Next: #### in Access Pivot Tables