Let me see if I can explain the process that I want to occur:
- User enter's data in a form to create a row in the table.
- Later the user changes information and resaves the changes to the same row in the table.
The first part is easy. The second step seems perplexing even after trying the code.
Let's say I have only five rows in a table named "properties" and the one row that appears has zone="NorthWest" selected because the Where clause limits the number of select option elements to just that row. If I remove the where clause then the result will be the retrieval of Zones from the properties table for all five rows (i.e., Northwest, Southeast, ....) and some of them will be duplicated (i.e., noted below) in the Select Options list because that's just the way previous users stored the options selected in the properties table:
Northwest
Southeast
Southeast
Northcentral
Eastcentral
....
....
I want to be able to list all Zones, each unique, so that the user sees, not only their currently stored value, but then they can select an option from the list and replace their current stored value with one from the list. If no user ever stores a SouthWest value to their row, it won't show in the selectable list, because the values come from the properties table and some of the selectable values may not have been stored.
I created a separate table named "Zones" that stores each of the Zones so that they are all represented and not duplicated. Then when the update form is displayed, the form is built using all of the separate tables for each of the select boxes on the form. The difficulty that I'm having is:
The user's selection doesn't appear because now I'm not pulling the stored values from the properties table but instead I'm using the Zones table.
How can I display the user's current selection AND make available all of the other unique selections in the same select box?
I have other select boxes to place on the form but for now, the only select box on the form is the Zones select box. This helps with determining the best way to code it.
I hope someone understands what I'm trying to achieve.