@
@Alex
I can't find a solution to detect if Control.Controltype=acSubForm is
SubForm/SubReport...
The only way i find is to check for Control.Parent...
Public Sub MySub(obj As Object)
Dim ctl As Access.Control
'....... do something
'..................
For Each ctl In obj.Controls
Select Case ctl.ControlType
Case Is = acSubform
If TypeOf ctl.Parent Is Form Then
Call MySub(ctl.Form)
Else
Call MySub(ctl.Report)
End If
End Select
Next
End Function
Have i any other possibility or not...?
Tnx
@Alex
SubForm/SubReport...
The only way i find is to check for Control.Parent...
Public Sub MySub(obj As Object)
Dim ctl As Access.Control
'....... do something
'..................
For Each ctl In obj.Controls
Select Case ctl.ControlType
Case Is = acSubform
If TypeOf ctl.Parent Is Form Then
Call MySub(ctl.Form)
Else
Call MySub(ctl.Report)
End If
End Select
Next
End Function
Have i any other possibility or not...?
Tnx
@Alex