Private Sub Command1_Click()
conAddStudent.ConnectionString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID= 123 ;Initial Catalog=" & Text1.Text & " ;Data Source=COM1\SQLEXPRESS;password= 123"
If Text2.Text = "Valid Name" Then
Text2.Enabled = True
Else
MsgBox "none"
End If
End Sub