Dim i As Integer
Dim xCount As Long
Dim B() As Integer
For i = 0 To Check1.Count - 1
If Check1(i).Value = 1 Then
A = A & Check1(i).Caption & ","(取到3个值,逗号隔开)
End If
Next i
B = Split(A, ",")(这句提示类型不匹配!)
zp1.Text = B(0)
zp2.Text = B(1)
zp3.Text = B(2)
把3个值分到3个文本框,再写到数据库。