Bonjour,

Comment peut-on assigner à variable de type subForm, la valeur d'une variable de type Control sachant quelle contient un type subForm.
voici mon code
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
 
    Dim oControl As Control
 
    For Each oControl In Me.Form.Controls
        If (oControl.Type = acSubform) Then
            Dim oSubForm As SubForm
 
            oSubForm = oControl1    ' ?? comment va l'assignation ??
            oControl.Form.strBuildControlSource (oSubForm)
        End If
    Next oControl
CAMIC