请教数据库储存方法~!
请问各位 Private Sub Command1_Click()
CommonDialog1.ShowColor
On Error GoTo ErrDeal
Data1.Recordset.Edit
ErrDeal:
If Err.Number = 3021 Then Data1.Recordset.AddNew
Data1.Recordset.Fields("FormBC") = CommonDialog1.Color
Data1.Recordset.Update
Form1.BackColor = CommonDialog1.Color
End Sub
Private Sub Form_Activate()
On Error Resume Next
Form1.BackColor = Data1.Recordset.Fields("FormBC")
Resume
End Sub
Private Sub Form_Load()
Data1.DatabaseName = "C:\PrgSet.mdb"
Data1.RecordSource = "ColorSet"
End Sub
这段如果改成储存 text1 text2里的内容改怎么改
我上面有几个代码还没学过所以不知道内容
请各位大哥大姐帮帮忙~!