我用VB作了一个学生成绩管理,为什么添加学生的成绩后在数据库里没有显示呢?
我用vb+sql2000做的,在模块里面我这么写的在Public ADOcn As Connection
Public Sub Main()
Dim strSql As String
strSql = "provider=SQLOLEDB;server=20110407-1952;database=成绩;UID=mytext;PWD=1234"
If ADOcn Is Nothing Then
Set ADOcn = New Connection
ADOcn.Open strSql
End If
frmMain.Show
End Sub
Public ADOcn As Connection
Public Sub Main()
Dim strSql As String
strSql = "provider=SQLOLEDB;server=20110407-1952;database=成绩;UID=mytext;PWD=1234"
If ADOcn Is Nothing Then
Set ADOcn = New Connection
ADOcn.Open strSql
End If
frmMain.Show
End Sub
请高手解答