We use forms in Microsoft Access which sometimes use dropdown options. These dropdown options are often pulling their options from other tables. We have one specific table called “Sources” which contains a list of sources that then populates some of these dropdowns. My question is whether or not our forms would be affected if we delete one of the rows in our “Sources” table. For example, if in the past we used a form that selected the “Source 1” dropdown option which pulled that option from the “Sources” table, but today we deleted that “Source 1” row in the “Sources” table, would anything happen to those records that had previously used “Source 1”? Would those records retain “Source 1” in that field, would they now become blank, or would there be something else in its place?<\/p>","upvoteCount":5,"answerCount":4,"datePublished":"2024-04-24T19:01:48.835Z","author":{"@type":"Person","name":"juanmejia10","url":"https://community.spiceworks.com/u/juanmejia10"},"acceptedAnswer":{"@type":"Answer","text":"
This actually depends on how the data was set up and used. It might be storing the full text of the dropdown, in which case you would be fine to delete the source entry, the record will still have the full text of ‘source1’ in the appropriate field and that won’t be effected by the deletion. If, however, the field is recording the row id of the source field table and it does a lookup of the id to the source text value to populate the record, then deleting the source row would break that lookup.
\nEasy way to tell;
\nOpen the table that has the data from that form’s entries. Look at the column that contains the source selections field, and see whether it has the full text of the source or is just a number that refers back to the correct row of the source table. As long as full text is being stored in the record, you will be fine to delete the row from sources table and the historic data will remain intact.<\/p>","upvoteCount":3,"datePublished":"2024-04-24T19:12:47.309Z","url":"https://community.spiceworks.com/t/question-about-deleting-microsoft-access-rows/1068305/2","author":{"@type":"Person","name":"craigrrr","url":"https://community.spiceworks.com/u/craigrrr"}},"suggestedAnswer":[{"@type":"Answer","text":"
We use forms in Microsoft Access which sometimes use dropdown options. These dropdown options are often pulling their options from other tables. We have one specific table called “Sources” which contains a list of sources that then populates some of these dropdowns. My question is whether or not our forms would be affected if we delete one of the rows in our “Sources” table. For example, if in the past we used a form that selected the “Source 1” dropdown option which pulled that option from the “Sources” table, but today we deleted that “Source 1” row in the “Sources” table, would anything happen to those records that had previously used “Source 1”? Would those records retain “Source 1” in that field, would they now become blank, or would there be something else in its place?<\/p>","upvoteCount":5,"datePublished":"2024-04-24T19:01:48.967Z","url":"https://community.spiceworks.com/t/question-about-deleting-microsoft-access-rows/1068305/1","author":{"@type":"Person","name":"juanmejia10","url":"https://community.spiceworks.com/u/juanmejia10"}},{"@type":"Answer","text":"
If you find that it is storing an ID number and not the full text, in order to maintain historic lookups but still remove a selection from a dropdown list, just add an ‘active’ column to the source table. Set active = 1 for all of the ‘live’ rows, and set active = 0 for the ones you want to remove from the dropdown. Then adjust the dropdown to only select values from source table where active = 1.<\/p>","upvoteCount":3,"datePublished":"2024-04-24T19:15:56.950Z","url":"https://community.spiceworks.com/t/question-about-deleting-microsoft-access-rows/1068305/3","author":{"@type":"Person","name":"craigrrr","url":"https://community.spiceworks.com/u/craigrrr"}},{"@type":"Answer","text":"
Thanks for the response! I went to check how the data was being stored and it was storing the full text of the dropdown, not a row id. I went ahead and deleted the source row and confirmed that none of the already existing forms were affected. Thanks again!<\/p>","upvoteCount":2,"datePublished":"2024-04-24T20:10:01.674Z","url":"https://community.spiceworks.com/t/question-about-deleting-microsoft-access-rows/1068305/4","author":{"@type":"Person","name":"juanmejia10","url":"https://community.spiceworks.com/u/juanmejia10"}}]}}