I am selecting individual labels. I don't want to use a call
function, I want the code to be one line for all buttons. As it
stands now the code is a mile long.
The code is as follows for each label
Private Sub Label11_DblClick(Cancel As Integer)
DoCmd.OpenForm "frm_searchresults", acNormal, , "[Sec/Lot] = '" &
Me!Label11. Caption & "'"
End Sub
This example is from label # 11, obviously each label has a different
number.
I thought about using a macro but I need to know how to tell which
label I have double clicked on before it will open the appropriate
record associated with that particular label.
Thanks
KB
Mike said:
Do you want to click a button and have that code exercised on all
labels or be able to select individual labels?
In teh former you would loop through teh collection and in the
latter you can create a function then paste a call to that into each
label.
100 labels on a form usually sets off "Warning will Rogers" design
question alarms.