If GName.State = 1 Then GName.Close
GName.Open "Select Name from Groups order by Name", con, adOpenKeyset, adLockOptimistic
If GName.RecordCount > 0 Then
For Gi = 1 To GName.RecordCount
GCount = Val(DataCombo4.text) + 1
Gc = DataCombo4.text + Chr(DataCombo4.text)
Next Gi
End If
Exit Sub
|