How to check if form has subform

  • Thread starter Thread starter SF
  • Start date Start date
Loop through the Controls of the form, to see if any have a ControlType of
acSubform:

Dim ctl As Control
For Each ctl In Me.Controls
If ctl.ControlType = acSubform Then
Debug.Print ctl.Name & " is a subform"
End If
Next
 
Back
Top