I have two tables: public_records and personnel_info.
- public_records contains a full list of users (storing things such as first name, last name, phone number, and more).
- personnel_info will share a few pieces of information with public_records (both will have a few common field names); however, it will also have a few of its own fields. Because public_records is live, or semi-live, I need to store the redundant information in personnel_info as a 'snapshot' of the information at the time of adding the user.
My goal is to have the user be able to search for a first and last name (by typing it in the corresponding search boxes on the web form). Clicking the search button will then populate a listview of any people matching those names, and it will provide unique information about each person so that the user can clearly distinguish between them. Once the user selects a person from the listview, I need some textboxes to be populated with additional fields from that person's entry in public_records. To be clear, the listview shows only a few unique, identifying items, but the textboxes will show lots of information so the user can make small changes as needed. After they are confident that all the information is correct, I want them to be able to click a save button (because the textboxes are on a data entry form) which will save all of the fields represented by the textboxes into personnel_info.
In short, I want some textboxes populated by a query of public_records, but I want the save button to store the data in those textboxes to personnel_info. All of the searching and the populating of the listview works correctly. My issue is only with the input from one table and the output to another. The farthest I got was being able to do one or the other: populate the textboxes but have them linked to the query, or link them to the personnel_info table but have them start empty. Having the listview display all of the information needed to fill the textboxes and having the user just manually copy all of the data down defeats the point of this system and is not acceptable.
Let me know if any additional information is needed.
Thanks!