LarryE
Well-known member
- Local time
- Yesterday, 16:18
- Joined
- Aug 18, 2021
- Messages
- 1,062
Then based upon what limited information you have given, you will need to structure your database something like this to at least begin to do what you wanted:This database is used in a hospital comprising of 5 buildings each comprising of 1 - 4 floors (stations). Each station is crewed by up to 3 people and each station has its own table in the database and the structure of these tables are mostly identical. The query is supposed to go through all the tables and throw out a list of all the 54 people crewing the stations on any given day. The day in question is defined by the date shown on an already opened form "StartUp". I hope this is understandable. BTW I am far from an Access expert and am just happy that the database runs.
but this is just a very beginning basic design suggestion. See how you only keep each piece of information in one place, and tables are related by Primary Keys (with the Key Symbol) and Foreign Keys. They call it a "relational" system for this very reason.
- WorkDateID in the WorkDate table is the Primary Key for WorkDateID in the Building table
- BuildingID in the Building table is the Primary Key for BuildingID in the Floor table
- Floor table also has a Foreign Key relationship with the Employee table because each employee may work on any floor in any building on any (multiple) WorkDates.