Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim ctl As Control
For Each ctl In Me.Controls
If ctl.Tag = "Something1" Then
'Do something
ElseIf ctl.Tag = "Something2" Then
'Do something else
End If
Next ctl
'Module level variable to hold the control collection
Private colControls As New Collection
Private Sub Form_Load()
'Add controls to the collection in the order you want
colControls.Add Me.Controls(4)
colControls.Add Me.Controls(2)
colControls.Add Me.Controls(8)
End Sub
Private Sub DoSomething()
Dim ctl As Control
'This will process control 4, then 2, then 8
For Each ctl In colControls
'Do whatever
Next ctl
End Sub