misterweber
New Member
- Joined
- Jan 15, 2004
- Messages
- 13
I've received some excellent help around here, and I hope that someone can help me out again.
In this discussion, I described my tables and relationships. (btw - thanks!) To bring it back again, my table structure is like this ( italicized fields are linked fields bolded fields are primary keys ):
Task
TaskID
SubProject
Description
Job Code
etc...
Allocations
AllocationID
TaskID
ResourceID
Hours
etc...
Resources
ResourceID
FirstName
LastName
Role
Department
etc...
The idea is to create a single form (or series of linked forms) so that when one enters in a new Task, at the same time one can also choose the resource and hours. I was able to get the queries to link properly. However, when I get to the part where I enter the resource information, it doesn't select from the list... it instead creates a new resource every time! The only way to select a resource from the list is to pick the exact Resource ID from the list. I would like to have it look up the name (e.g. when looking up the resource "John Smith", one could type in "Smith" in the last name field, and it would bring up the record for John Smith.) I read a suggestion once to do a duplicate primary key, but it wasn't allowing any of that. Any suggestions?
In this discussion, I described my tables and relationships. (btw - thanks!) To bring it back again, my table structure is like this ( italicized fields are linked fields bolded fields are primary keys ):
Task
TaskID
SubProject
Description
Job Code
etc...
Allocations
AllocationID
TaskID
ResourceID
Hours
etc...
Resources
ResourceID
FirstName
LastName
Role
Department
etc...
The idea is to create a single form (or series of linked forms) so that when one enters in a new Task, at the same time one can also choose the resource and hours. I was able to get the queries to link properly. However, when I get to the part where I enter the resource information, it doesn't select from the list... it instead creates a new resource every time! The only way to select a resource from the list is to pick the exact Resource ID from the list. I would like to have it look up the name (e.g. when looking up the resource "John Smith", one could type in "Smith" in the last name field, and it would bring up the record for John Smith.) I read a suggestion once to do a duplicate primary key, but it wasn't allowing any of that. Any suggestions?