Not getting data to show up in a report

L

ladawnd

/ I had some major typos the first time I asked these questions and I have no
response so far, so I'm editing my question for clarity. Thanks for your
help. /

I maintain an Access database of Volunteers for our elementary school. Last
year I kept everything in a flat table to make things quick and simple.

This year I have a database with three tables. Teachers, Students and
Parents. There is a one to many relationship from teachers to students. The
student database has a field called teacher that is linked to the primary key
of the teachers. The form that I use for data entry has a drop down list of
possible teachers.

And there is a One to many relationship between parents and students. The
student table has a field called parent which is linked to the primay key of
the parent in the parent table.

Each parent has certain things they volunteered to do. I need to create a
list for each teacher that shows which parents have volunteered to do what.

Each parent may show up in more than one teacher's list.

I want the report to include student and parent information and by sorted by
teacher. When I use the wizard to create a report, the student information
is all complete, but the parent information is all blank. It does sort by
teacher, and as best as I can tell the information as to which student is in
which teacher's class is pulling up correctly. However, rather than
printing the teacher's name it is printing their Primary Key. I can
manually fix that in Word, but I'd rather have Access print their name.

I used to do tech support for Novell for a living. I'm computer literate,
Office Proficient, but not a Visual Basic Programmer. I have taken a class
in Pascal about 10 years ago. I understand basic database design concepts.
My husband just finished a college course in SQL, but he knows nothing about
Access. I don't know much about SQL. I have never taken a class in Access.
I need an Access for Dummies tutorial. Everything I've researched is either
too simplistic or too complicated.

Any suggestions on how to do this? I'm willing to RTF, but I can't find what
to read. Thanks!

ladawnd at gmail do not spam me dot com
 
A

Al Camp

ladawnd,
Probably because the Wizard is too simplistic a tool for your particular
report. You probably ended up with just the Teacher and Student tables in
the query behind your report, and the Parents table wasn't included...
therefore you can only display the ParentID from Students... and not the
rest of the Parent information.

The query behind your report should bring together the 3 tables.
In report design view, place your cursor in the report's RecordSource
property, and clear any "saved" query that may be there. Click the 3-dot
button that appears on the right. You are now in the query design grid.
Table Teachers should be linked to table Students via the TeacherID, and
table Students should be linked to table Parents via the ParentID.
Once Parents are related to Students, the Parent Name field will be
available for placing on the grid, and subsequently, on the report.
--
hth
Al Camp
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions
 
J

John Spencer (MVP)

WIthout field names this is going to be generic, although if your husband knows
SQL he should be able to work out the query. The query should be used as the
source of your report vice using a table.

SELECT T.TeacherName, T.StudentName, P.ParentName, P.VolunteerActivities
FROM (TeacherTable as T INNER JOIN Students as S
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top