Function Connect_Dbase()
Set Conn = New ADODB.Connection
ConnStr = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & App.Path & "\dbSys.mdb;" & _
"Persist Security Info=False"
Conn.Open ConnStr
End Function
Dim rsX As ADODB.Recordset
Dim strRs As String
Call Connect_Dbase
strRs = "SELECT * from Temp_Info"
Set rsX = New ADODB.Recordset
rsX.CursorType = adOpenDynamic
rsX.CursorLocation = adUseClient
rsX.LockType = adLockPessimistic
rsX.Open "SELECT * from Temp_Info", Conn, adOpenForwardOnly, adLockPessimistic
Set dgrdMain.DataSource = rsX
I want to edit the values of my grid ... Allow Update is enabled but how come my table is not being updated.
Can anyone check my code and tell me if i'm missing something I can't figure it out. Please advice thanks!
Set Conn = New ADODB.Connection
ConnStr = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & App.Path & "\dbSys.mdb;" & _
"Persist Security Info=False"
Conn.Open ConnStr
End Function
Dim rsX As ADODB.Recordset
Dim strRs As String
Call Connect_Dbase
strRs = "SELECT * from Temp_Info"
Set rsX = New ADODB.Recordset
rsX.CursorType = adOpenDynamic
rsX.CursorLocation = adUseClient
rsX.LockType = adLockPessimistic
rsX.Open "SELECT * from Temp_Info", Conn, adOpenForwardOnly, adLockPessimistic
Set dgrdMain.DataSource = rsX
I want to edit the values of my grid ... Allow Update is enabled but how come my table is not being updated.
Can anyone check my code and tell me if i'm missing something I can't figure it out. Please advice thanks!