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 strLetter1 As String
Dim strLetter2 As String
Dim ctrl As Control
Dim i As Integer
i = 0
strLetter1 = UCase(InputBox("Enter a search letter (1 letter only!)"))
If Len(strLetter1) <> 1 Then
MsgBox "Doh! You entered the wrong number of characters! Goodbye..."
Exit Sub
End If
For Each ctrl In Me.Controls
If (ctrl.ControlType = acTextBox) _
And (ctrl.Name <> "txtSearchCount") _
And Not IsNull(ctrl) Then
strLetter2 = UCase(ctrl.Value)
If strLetter2 = strLetter1 Then
i = i + 1
End If
End If
Next ctrl
Me!txtSearchCount = i