vb中,text文本框控件中的数字,录入数据库后,它会自动消失,怎么设置才能让文本框中的数不消失? 10
PrivateSubform8_load()Text1="":Text2="":Text3="":Adodc1.ConnectionString="Provider=SQ...
Private Sub form8_load()
Text1 = "": Text2 = "": Text3 = "":
Adodc1.ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;User ID=sa;Initial Catalog=test;Data Source=PC-201205021058\SHUJUKU"
Adodc1.RecordSource = "数据表"
Adodc1.CommandType = adCmdTable
Adodc1.Refresh
End Sub
Private Sub Command1_Click()
On Error Resume Next
Adodc1.Recordset.AddNew
End Sub
有三个text里面有数据,按command1把数据存入我的数据表中 展开
Text1 = "": Text2 = "": Text3 = "":
Adodc1.ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;User ID=sa;Initial Catalog=test;Data Source=PC-201205021058\SHUJUKU"
Adodc1.RecordSource = "数据表"
Adodc1.CommandType = adCmdTable
Adodc1.Refresh
End Sub
Private Sub Command1_Click()
On Error Resume Next
Adodc1.Recordset.AddNew
End Sub
有三个text里面有数据,按command1把数据存入我的数据表中 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询