Re: Find a row in a table from a form
- From: "BruceM" <bamoob@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 16 Jun 2006 07:33:54 -0400
From the quote that slaps at those who have responded I take it that you areaware this is a volunteer group. What puzzles me is your attittude toward
volunteers. People who respond to questions do so out of interest in
Access, and from a wish to pass along what they have learned as others
helped them. Not every response is on target, but then neither is every
question. You may one day learn that it is rarely necessary to move records
between tables, and it is almost always more work than the alternative.
Then again, it seems you have learned all there is to know.
On the subject of wasting time, if you had taken the time to read my
response you would know that my question was whether the same exam could be
taken by multiple students, not whether each student took the same exam
repeatedly. One student --> many exams plus one exam --> many students
equals many-to-many.
I saw the relationships in the other posting before you peevishly pulled the
screen shot. You certainly are making it about as difficult on yourself as
you can.
"Harper" <harperwork18@xxxxxxxxx> wrote in message
news:1150408908.863794.234440@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
You know what? Screw it. Every point each of you has made is ALREADY
part of my database or ALREADY something I considered. The important
info is NOT that a student took an exam (and no, they don't take the
same exam multiple times) but WHAT score they had. So each student has
a 1:1 relationship to the licensure or (non)licensure information.
There are no many to many relationships.
Thanks anyway for wasting my time when I had a simple question that
begged a simple answer.
"Volunteerism works when you have qualified volunteers"
--A. Mutt
Harper wrote:
I did break out the tables into single-world entities (the students
have just the information you describe) but, though I can see what you
are saying about the problem with the exams, I am having a hard time
visualizing another way to set it up. Each student's scores need to be
recorded somewhere.
I will post two of the tables as images...asking a lot, here, but can
you tell me a little how you would change the structures?
http://accesshelpplease.blogspot.com/
BruceM wrote:
Does an exam involve more than one student? If so, the exam
information
should be stored once, not in the record of each student who takes the
exam.
Further, if each student can take several exams, and each exam is taken
by
several students, there are further considerations in setting up table
relationships. A good general rule for tables is that a table should
contain information about a single real-world entity. Name, address,
phone,
Student ID, and so forth can be thought of as attributes of a person.
An
exam does not fit into that category.
I agree with Lynn that your database does not seem to be normalized.
Queries, rather than multiple tables, are often the best way of sorting
and
filtering data. If you insist on shuffling information between five
different tables you can probably find somebody who will tell you how
to do
that, but you should also expect that the people who volunteer here
will try
to steer you away from an unsound design.
"Harper" <harperwork18@xxxxxxxxx> wrote in message
news:1150398667.847545.228110@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Because there is a lot more to the data than simply where they are
licensed or not. There are exams and licensing numbers attached to
licensure; there are exams attached to an unlicensed student.
I have normalized the database and that is why the data is separated
out.
Do you have a solution to the question I asked?
Lynn Trapp wrote:
Harper,
Why do you have different tables for this data? You should simply
place a
couple of boolean fields in your student table that identify whether
or
not
the student is licensed or unlicensed and whether or not it is an
active
(archived) student.
--
Lynn Trapp
MS Access MVP
www.ltcomputerdesigns.com
Access Security: www.ltcomputerdesigns.com/Security.htm
Jeff Conrad's Access Junkie List:
http://home.bendbroadband.com/conradsystems/accessjunkie.html
"Harper" <harperwork18@xxxxxxxxx> wrote in message
news:1150395999.754294.237510@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello,
I am making a database where there is a form where the user can
select
whether an education grad. student is unlicensed or licensed.
Nearing
the end of the program, their status does change (we hope) from
unlicensed to licensed. Also, the student's status may change
simply
because the user may have mistakenly assigned the wrong status.
I have table STUDENT, table LICENSED, table UNLICENSED, table
LICENSED_ARCHIVE, table UNLICENSED_ARCHIVE among others. In form
STUDENT_ENTRY, I have a combo box with "unlicensed," "licensed,"
and
"unknown" and text boxes, one of which is IDNo (their student id
number). The IDNo is the primary key through the tables.
When the user changes the combo box from one type of status to
another
(excluding "unknown," for which nothing happens), I would like to
have
access 1.) look up the IDNo field, 2.) Find that IDNo in the
original
table, the table that corresponds to the status the student is
being
switched from 3.) Copy that row into table LICENSED_ARCHIVE or
UNLICENSED_ARCHIVE as the case may be 4.) Delete said row from
original
table.
I understand how to do an append query and delete query so I have
3.
and 4. covered. But I am stuck at 1. and 2. I do not know VBA so
if
there is some kind of solution I can understand using expressions
or
whatnot, I'd be grateful.
Thanks much,
Harper
.
- Follow-Ups:
- Re: Find a row in a table from a form
- From: Harper
- Re: Find a row in a table from a form
- References:
- Find a row in a table from a form
- From: Harper
- Re: Find a row in a table from a form
- From: Lynn Trapp
- Re: Find a row in a table from a form
- From: Harper
- Re: Find a row in a table from a form
- From: BruceM
- Re: Find a row in a table from a form
- From: Harper
- Re: Find a row in a table from a form
- From: Harper
- Find a row in a table from a form
- Prev by Date: Re: How display messages from macro after form opens?
- Next by Date: Re: Listbox selection displaying on subform
- Previous by thread: Re: Find a row in a table from a form
- Next by thread: Re: Find a row in a table from a form
- Index(es):
Relevant Pages
|
Loading