Hi, i need to extend my system functionality . I need to do add and edit function. Can anyone help me by guide how to do so ? I got error when i use this coding.
[CODE=VB]
Dim cn1 As ADODB.Connectio n
Dim rs1 As ADODB.Recordset
Dim sqlString As String
' Add new record -
sqlString = "Insert INTO Alternator Engine,Volt,Amp )" _
& " VALUES (" & txtAlternator.T ext & "," & txtVolt.Text & "," & txtAmp.Text & ")"
Set rs1 = cn1.Execute(sql String)
' Clear the fields -
txtAlternator.T ext = ""
txtVolt.Text .Text = "" txtAmp.Text = ""[/CODE]
[CODE=VB]
Dim cn1 As ADODB.Connectio n
Dim rs1 As ADODB.Recordset
Dim sqlString As String
' Add new record -
sqlString = "Insert INTO Alternator Engine,Volt,Amp )" _
& " VALUES (" & txtAlternator.T ext & "," & txtVolt.Text & "," & txtAmp.Text & ")"
Set rs1 = cn1.Execute(sql String)
' Clear the fields -
txtAlternator.T ext = ""
txtVolt.Text .Text = "" txtAmp.Text = ""[/CODE]
Comment