Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21278

how to make button enabled only if all txtboxes and combobox are chosen

$
0
0
hey

im trying to make a my button save enabled only if all txtboxes are filed and comboxes are choosen

i tried something like this only form the txt but its not working

Code:

  Dim x As Integer
  Dim a As Boolean
a = "True"

For x = 1 To 5
If Txt(x) = "" Then
a = "False"
End If
Next


If a = "False" Then
BttnSave.Enabled = False
End If

offcurse i need for the combobox to

Viewing all articles
Browse latest Browse all 21278

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>