G
Guest
I have a subform with a relatively small (under 40) maximum number of records
for each main form record. I'm using a tab control to identify all the
potential subform records, whether present or not (this is a cosmetic feature
- no data is actually stored on the tab control pages). My application is
working fine but I would like to add an indicator above each tab to show
whether or not that particular record exists.
I have created small 'marker' labels above each tab and want to make these
labels visible when the subform record is missing (and vice versa). My plan
is to loop through the recordsetclone of the subform and hide the labels for
all the records I find. All other marker labels would then be made visible.
The labels have been given the names TabFlag0, TabFlag1, TabFlag2 .......
TabFlag38.
My problem is that I can't currently think of a way to automatically select
the correct label as I step through the loop. Obviously I need to concatenate
"TabFlag" and the current loop counter value but I don't know how to create
an executable line of code using this assembled label name.
I suspect that there is a very simple solution ........
for each main form record. I'm using a tab control to identify all the
potential subform records, whether present or not (this is a cosmetic feature
- no data is actually stored on the tab control pages). My application is
working fine but I would like to add an indicator above each tab to show
whether or not that particular record exists.
I have created small 'marker' labels above each tab and want to make these
labels visible when the subform record is missing (and vice versa). My plan
is to loop through the recordsetclone of the subform and hide the labels for
all the records I find. All other marker labels would then be made visible.
The labels have been given the names TabFlag0, TabFlag1, TabFlag2 .......
TabFlag38.
My problem is that I can't currently think of a way to automatically select
the correct label as I step through the loop. Obviously I need to concatenate
"TabFlag" and the current loop counter value but I don't know how to create
an executable line of code using this assembled label name.
I suspect that there is a very simple solution ........