I accepted a month long job in putting together an Access database for a trucking company. This job revealed to me how much of Access I really do not know, yet thought I knew. It is just above my knowledge level, yet, I feel that if I just understand some concepts, that I will be able to complete the assignment.
I'm having several problems. One problem I have is the title of this thread. I don't know how to make the incoming data know that it is related to its perspective field in other tables.
Also, I am not understanding is how to link the tables. I have a main table with all the data. It is by date, and has all transactions, which Access assigned a number per transaction as the primary key. Then I have an Employee table (the truck drivers), a Customer table (the truck driver's company), an employee productivity table (includes wages, pay rate, Emp names, etc) and a truck table. I tried linking the tables, but not sure if it is correct. I linked the Customer and Employee table via an EmpID foreign key in the Customer table. The employee productivity table is linked to the employee table via an EmpProd foreign key in the employee table. And the Customer table is linked to the truck table via a Cust foreign key in the Truck table. The table with all data is indexed to the Emp table, and under relationships the arrow points from the Emp table to the all data table, but there is no one to many (etc.) relationship because I did not know how to establish one. I tried reversing the arrow, but it wouldn't let me. I don’t even know the difference between an indexed link verses a relationship link.
The data itself is not linked. The Employees in the employee table does not know that it is the same field in the other tables. The all data table has EmpName daily info with only about 20 names, but about 4,000 fields. I listed the 20 names in the EmpName field of the tblEmp, but do not understand how to make both tables realize that it is the same field. It does not seem to realize that it is the same field because it does not rearrange the two field data with the correct data. I have this problem with all my tables.
So when I need to add the rest of the data, I don’t think the data knows where to go.
What am I doing wrong? What am I not conceptualizing?
(I am using Access 2007 at work, and completed a class on 2010.)