Hi, guys any good heart there? heheh,
anybody help me. what is the main problem? with my code: see below:
assuming that i have the connection.. called CN..
Dim sSQL As String
If cmdUpdate.Caption = "UPDATE" Then
Set CMD = New ADODB.Command
sSQL = "Update header Set line='" & cboLine & "'"
sSQL = sSQL & ",grpHead='" & txtGrphead.Text & "',shift='" & txtShift.Text & "'"
sSQL = sSQL & ",supervisor='" & txtSupervisor.Text & "',jn='" & txtJn.Text & "'"
sSQL=sSQL & ",shfSched='" & txtSched.Text & "',dte='" & txtDate.Text & "'"
sSQL = sSQL & " Where id_edit=" & Val(lngid)
With CMD
.ActiveConnection = CN
.CommandType = adCmdText
.CommandText = sSQL
.Execute
End With
End If
MsgBox "DATA ADDED TO DATABASE

", vbInformation, "TO DATABASE"
Set CMD = Nothing
guys?... provider nako ge use kai provider=Microsoft.jet.OLEDB.4.0;Data Source = " & App.Path & "\Database\access.mdb"
anyone pls... or u can email me in this email---->
it2@firstflory-ph.com