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.
[blue]Public Sub ButCtl()
Dim ctl As Control
For Each ctl In Me.Controls
If ctl.Tag = "?" Then
If Trim(ctl & "") <> "" Then
Me![purple][B][I]ButtonName[/I][/B][/purple].Enabled = False
Exit For
End If
End If
Next
End Sub[/blue]
[blue] Call ButCtl[/blue]
[blue]Public Sub ButCtl()
Dim ctl As Control, Tag As Integer
For Each ctl In Me.Controls
If ctl.Tag = "?" Then
If Trim(ctl & "") <> "" Then Tag = Tag + 1
End If
Next
Me![purple][B][I]ButtonName[/I][/B][/purple].Enabled = (Tag = 0)
End Sub[/blue]
I fully tested this and you should only have to make the call from the unBound Textboxes.fishtek said:[blue] . . . I had to place the whole Sub code under the AfterUpdate Event for every textbox.[/blue]