H
heidi
Hello All:
Have not dealt with looping through controls or recordsets before and
need help getting started.
Here is what I have:
1. Main form - frmMap
2. List Box on Main form - lstMapBlocksAdded
3. Sub form that's source object changes based on textbox value on
Main form.
4. On Sub form linked unbound object frame showing pdf map. On top
of map picture are invisible buttons over different sections of my
map. Creating a clickable map. OnDblClick adds the corresponding
record to my a list box located on Main form that matches caption on
each button. After record is added to list box lbl with caption "X"
appears in red above map section and makes invisible button enabled =
false so it can not be selected again. This all works great when I am
first creating the record.
What I want to do is when someone needs to go back into that record
and pulls up the map, I want to loop through my list box and loop
through all the controls to remark the buttons as enabled = false or
lables as visible if matching my listbox records.
How do I loop through my listbox and controls that match.
My records in my list box have a column called RecMapTag. The value
in this column matches the captions on the buttons and label names.
Thanks
Have not dealt with looping through controls or recordsets before and
need help getting started.
Here is what I have:
1. Main form - frmMap
2. List Box on Main form - lstMapBlocksAdded
3. Sub form that's source object changes based on textbox value on
Main form.
4. On Sub form linked unbound object frame showing pdf map. On top
of map picture are invisible buttons over different sections of my
map. Creating a clickable map. OnDblClick adds the corresponding
record to my a list box located on Main form that matches caption on
each button. After record is added to list box lbl with caption "X"
appears in red above map section and makes invisible button enabled =
false so it can not be selected again. This all works great when I am
first creating the record.
What I want to do is when someone needs to go back into that record
and pulls up the map, I want to loop through my list box and loop
through all the controls to remark the buttons as enabled = false or
lables as visible if matching my listbox records.
How do I loop through my listbox and controls that match.
My records in my list box have a column called RecMapTag. The value
in this column matches the captions on the buttons and label names.
Thanks