Hey all,
Just wondering if I am currently doing the correct thing.
I have a problem (well, it might not be a problem) and have tried to explain below...
1) I have an Employee Table which has a Manager field. I have another table called Managers which is made up of ManagerID, ManagersName and Enddate.
2) I have a query that selects ManagerID and ManagersName if the enddate is null (i.e. hasn't been ended).
3) In the main Employee table, I use a lookup/combo box on the datasheet view to use the query mentioned above. I can then select a name of a manager.
Now, the problem is that "behind" this managers name is the manager ID (I have it bound to ManagerID). So, when I come to build certain queries, it sometimes doesn't work becuase I'll be querying for "John Doe" but the database stores it as "1", as thats the managerID for John Doe.
Is this correct? I'm having some trouble with queries becuase of this but thought that this was the correct way to do things and have a normalized database!
Thanks,
-NS
Just wondering if I am currently doing the correct thing.
I have a problem (well, it might not be a problem) and have tried to explain below...
1) I have an Employee Table which has a Manager field. I have another table called Managers which is made up of ManagerID, ManagersName and Enddate.
2) I have a query that selects ManagerID and ManagersName if the enddate is null (i.e. hasn't been ended).
3) In the main Employee table, I use a lookup/combo box on the datasheet view to use the query mentioned above. I can then select a name of a manager.
Now, the problem is that "behind" this managers name is the manager ID (I have it bound to ManagerID). So, when I come to build certain queries, it sometimes doesn't work becuase I'll be querying for "John Doe" but the database stores it as "1", as thats the managerID for John Doe.
Is this correct? I'm having some trouble with queries becuase of this but thought that this was the correct way to do things and have a normalized database!
Thanks,
-NS