Got a question that I'm hoping someone can help me with....
I created a DB that tracks projects and maps that are associated with each project. The maps are shown in a subform off of the projects form. I have a separate table (called projects_maps) that simply associates a specific map with a specific project (many to many relationship).
I have it set up in the map sub-form that when a user enters in a new map, it searches for any past maps that have the same exact information, and if so updates the projects_maps table with the older entered map's ID.
My problem arrises when I lose focus off of the recently entered map info. The database creates a new map (with the same specific info) and creates additional entries into both the maps table and the projects_maps table specifing the new map with the current project. The next time I bring up the specific project, it has both maps listed (the old and the new).
Does anyone have any ideas on how I might remedy the problem. I can try inserting some code to delete the most recent record after it has been added, but I'm thinking that there has to be some way to prevent the duplication from even occuring in the first place.
Any help is much appreciated. Thanks in advance.
Jody
I created a DB that tracks projects and maps that are associated with each project. The maps are shown in a subform off of the projects form. I have a separate table (called projects_maps) that simply associates a specific map with a specific project (many to many relationship).
I have it set up in the map sub-form that when a user enters in a new map, it searches for any past maps that have the same exact information, and if so updates the projects_maps table with the older entered map's ID.
My problem arrises when I lose focus off of the recently entered map info. The database creates a new map (with the same specific info) and creates additional entries into both the maps table and the projects_maps table specifing the new map with the current project. The next time I bring up the specific project, it has both maps listed (the old and the new).
Does anyone have any ideas on how I might remedy the problem. I can try inserting some code to delete the most recent record after it has been added, but I'm thinking that there has to be some way to prevent the duplication from even occuring in the first place.
Any help is much appreciated. Thanks in advance.
Jody