1,216
社区成员
发帖
与我相关
我的任务
分享
Private Sub Command3_Click()
Dim ccno As String
Dim ccname As String
Dim ccredit As Integer
Dim chours As Integer
ccno = Text1.Text
ccname = Text2.Text
ccredit = Val(Text3.Text)
chours = Val(Text4.Text)
sSQL = "insert into c(cno,cname,credit,hours) values ('" & ccno & "','" & ccname & "'," & ccredit & "," & chours & ")"
cn.Execute sSQL
End Sub