I have several tables as follows.
Department
DepartmentID(Primary Key)
DepartmentName(Text)
MgrEmployeeNumber(Text)
Foreign Key from Manager Table.
Manager
MgrEmployeeNumber(PrimaryKey)
LastName(Text)
FirstName(Text)
Employee
UserEmployeeNumber(PrimaryKey)
MgrEmployeeNumber(ForeignKey)
DepartmentID(ForeignKey)
etc....
See
http://www.access-programmers.co.uk/forums/showthread.php?s=&threadid=36418
for more details about the structure of the database.
I'm trying to redo the Department table so that DepartmentID will be an autonumber, field but when I went ahead and did so and tried to re-create the relationship I got the following error.
"Relationship must be on the same number of fields with the same data types. (Error 3368)"
It seems like Access wants me to make the foreign key DepartmentID in the Employee table an autonumber field to match data types.
But, I don't really think this is possible.
Any ideas on how I can make DepartmentID an autonumber field in the Department Table while still maintaining my relationship with the employee table?
Thanks.
Department
DepartmentID(Primary Key)
DepartmentName(Text)
MgrEmployeeNumber(Text)
Foreign Key from Manager Table.
Manager
MgrEmployeeNumber(PrimaryKey)
LastName(Text)
FirstName(Text)
Employee
UserEmployeeNumber(PrimaryKey)
MgrEmployeeNumber(ForeignKey)
DepartmentID(ForeignKey)
etc....
See
http://www.access-programmers.co.uk/forums/showthread.php?s=&threadid=36418
for more details about the structure of the database.
I'm trying to redo the Department table so that DepartmentID will be an autonumber, field but when I went ahead and did so and tried to re-create the relationship I got the following error.
"Relationship must be on the same number of fields with the same data types. (Error 3368)"
It seems like Access wants me to make the foreign key DepartmentID in the Employee table an autonumber field to match data types.
But, I don't really think this is possible.
Any ideas on how I can make DepartmentID an autonumber field in the Department Table while still maintaining my relationship with the employee table?
Thanks.