Sherman6789
Programmer
Hi,
We have a database with a table that is updated frequently by several users using various forms.
I want to add or modify a form where the user enters an ID number. If it exists in the table, it pops up and populates the fields. The user can then update any needed areas. If it DOES NOT exist, based on the fact that the ID number is not in the main table, the program will add a new record with the ID number already entered and allow the user to add the item information into the main table if the new item has an ID number (The user will not be able to change the ID number at this point since it has already been checked). If the item does not have an ID number, the item will be added to an alternate table (already created) which is keyed on the item "name" rather than the ID Number. I realize that the item can not be placed in the main table if it does not have an ID number because it will not be unique and blank ID numbers are not permitted. However the new items without ID numbers must be kept somewhere and I would not like the user to have to type it again for placing in the alternate table. That's the purpose of the alternate table. At a later date, the item will be assigned an ID number by headquaters. When the item with NO ID number is then matched, the ID number will be added to the record in the alternate table. I would like to be able to press a button and the program will evaluate the data, and any item with an ID number will be compared to the main table and if not found in the main table will be automatically added to the main table. If the newly ID item from the alternate table IS identified, certain fields in the alternate table for the item will be merged into the main table by updating those selected fields into the item of the main table. The matched items will no longer be needed in the alternate table and will be then automatically deleted.
Hope that this makes sense!
Any suggestions? Step by step instructions will be desired.
We have a database with a table that is updated frequently by several users using various forms.
I want to add or modify a form where the user enters an ID number. If it exists in the table, it pops up and populates the fields. The user can then update any needed areas. If it DOES NOT exist, based on the fact that the ID number is not in the main table, the program will add a new record with the ID number already entered and allow the user to add the item information into the main table if the new item has an ID number (The user will not be able to change the ID number at this point since it has already been checked). If the item does not have an ID number, the item will be added to an alternate table (already created) which is keyed on the item "name" rather than the ID Number. I realize that the item can not be placed in the main table if it does not have an ID number because it will not be unique and blank ID numbers are not permitted. However the new items without ID numbers must be kept somewhere and I would not like the user to have to type it again for placing in the alternate table. That's the purpose of the alternate table. At a later date, the item will be assigned an ID number by headquaters. When the item with NO ID number is then matched, the ID number will be added to the record in the alternate table. I would like to be able to press a button and the program will evaluate the data, and any item with an ID number will be compared to the main table and if not found in the main table will be automatically added to the main table. If the newly ID item from the alternate table IS identified, certain fields in the alternate table for the item will be merged into the main table by updating those selected fields into the item of the main table. The matched items will no longer be needed in the alternate table and will be then automatically deleted.
Hope that this makes sense!
Any suggestions? Step by step instructions will be desired.