I'm working on a database model for a hospital and I need to come up with a solution for the database to be able to automatically generate which colour each employee's uniform will have to be depending on which department they work in, and also which grade they are at.
I know that I am going to have to run a query against both tables and check for the consitant record. But I have no idea what the **** to do to achieve it. Here's a basic idea of what I've come up with so far.
GradeID | Colours Available
---------|-----------------
Grade a | Blue, black, grey
Grade b | White, Grey, Red
Grade c | Green, White Stripes, Black
etc...
DeptID | Colours Available
--------|-----------------
Dept a | Green, White Stripes, Black
Dept b | Blue, black, grey
Dept c | White, Grey, Red
etc...
So if someone working in Department c was at Grade a they'd have to wear Grey... I'm sure you could work that out, what I need to do is somehow work out how to make this work in Access. Currently I have a table for the three separate data types (Grades, Depts, Colours). What I also need for this to do is be able to write the colour that they are going to need to wear into another table.
Dave
I know that I am going to have to run a query against both tables and check for the consitant record. But I have no idea what the **** to do to achieve it. Here's a basic idea of what I've come up with so far.
GradeID | Colours Available
---------|-----------------
Grade a | Blue, black, grey
Grade b | White, Grey, Red
Grade c | Green, White Stripes, Black
etc...
DeptID | Colours Available
--------|-----------------
Dept a | Green, White Stripes, Black
Dept b | Blue, black, grey
Dept c | White, Grey, Red
etc...
So if someone working in Department c was at Grade a they'd have to wear Grey... I'm sure you could work that out, what I need to do is somehow work out how to make this work in Access. Currently I have a table for the three separate data types (Grades, Depts, Colours). What I also need for this to do is be able to write the colour that they are going to need to wear into another table.
Dave