David, Thanks for your reply. I did exactly what you said, and it
worked great! I now have a table that lists all employees in the left
columns, and supervisors only on the right. I had the join wrong. I
want to reply to your message more specifically:
David S via AccessMonster.com wrote:[color=blue][color=green]
> >I understand why they use it. And if that's a condition for getting
> >help here, I'll accept that and try and find help elsewhere, since I
> >don't plan on learning SQL in the forseeable future.[/color]
>
> It's not a precondition, it's just that it will be harder to give you help
> that you will be able to understand & implement. It's certainly not
> impossible, and I'll try, but we may have some back & forth as we try to
> clarify what exactly each of us means by a particular statement :) It does
> sound like you've got a lot on your plate, but if you do get a chance, I'd
> say SQL is definitely well worth learning, since you can use it not only for
> Access, but pretty much any relational database out there. But back to your
> immediate requirements:[/color]
I should explain, I'm not a database person, I'm an Excel expert. The
only reason I'm doing this project in Access is that my boss decided I
can learn any software quickly and easily and she asked me to do this
employee database. I think I've showed her with this project that her
she was wrong about my capabilities!
[color=blue]
>[color=green]
> >The table created by the query contains the first name, last name and
> >employee ID of each employee, followed by the same information for
> >their supervisor. the problem is that every employee appears in both
> >sets of columns, including those that are not supervisors appearing in
> >the "supervisor" set of columns. So most of the names in the supervisor
> >columns have no corresponding name in the "employee" columns, just
> >blanks.[/color]
> Mm - the employees should only appear in the left hand set of columns, and
> only supervisors should appear multiple times in the right hand set of
> columns. I suspect the join between the two versions of the same table hasn't
> been defined properly. In the Query Designer, one version of the table should
> appear as "Employee" and the other as "Employee_1". There should be a join or
> line from SupervisorID in Employee to EmployeeID in Employee_1. If the line
> has dots at both ends rather than an arrow, it is an "inner join", meaning
> that only those Employees with a Supervisor will be displayed. If you want
> all Employees to be shown irrespective of whether they have a Supervisor, you
> need a "Left Outer Join" - right click on the join line and choose "Join
> Properties", and then choose "Include ALL records from 'Employee' etc". This
> should give you all Employees and who their Supervisor is.[/color]
That's what I have now. Great!
[color=blue]
>[color=green]
> >What I'd rather have is 2 views. One listing each employee and a
> >subdatasheet of their supervisor, and another of supervisors only, with
> >a subdatasheet of the employees they supervise.[/color]
> I'm afraid I don't understand what you mean by "subdatasheet". The query
> above will produce the employees with their supervisors; you can make it
> supervisor centric by sorting it by SupervisorID in Employee first. Then, you
> can write a report for the output the hides the duplicate entries in the
> query. If you want to display the output on a table in a form, I'm afraid
> you're going to need to ask over in the Forms or Forms Programming forum -
> I'm not very good at that part of the MS Access world...[/color]
Maybe you have an older version of Access, or just haven't used that
feature. I have 2000 and it has the capability to show a datasheet
where each record has a + or - next to it. If it has a +, I can click
on the + and a subdatasheet appears under the record with whatever
table I've chosen. I've tried it with the new datasheet your query
created and it's the entire datasheet, not just the data from the
selected record, which is what I want in it. So I'll have to do more
work on that.[color=blue]
>
>
> --
> Message posted via
http://www.accessmonster.com[/color]
I appreciate your patience and help.