Ouahh! !! Many, many thanks. I was not aware of this property.
Michel
"Geoff" <(E-Mail Removed)> a écrit dans le message de
news:bisqjm$2ql$(E-Mail Removed)...
> Hi Michel
>
> Open the form or report (in code) in design view,
> set an object variable = to the control you want
> to put handles on, and then set the variable's
> inselection property to true, eg
>
> Dim frm As Form
> Dim ctl As Control
>
> DoCmd.OpenForm "Form1", acDesign
> Set ctl = Forms(0).Controls("lblMyLabel")
> ctl.InSelection = True
>
> Set ctl = Nothing
> Set frm = Nothing
>
> Geoff
>
>
|