maverickmonster
Programmer
I have this code to make a new record in my db though vb6 i wish to reuse this code but updating the records fields the same table, the record that is to be updated is the one selected in lstAdmain.
Code:
defRsp = lstADmain
Which = "Insert INTO AD VALUES ( '" & lastnum & "','" & ad & "','" & txtBPdmember_key & "','" & txtADcourtesy_title & "','" & txtADaddress1 & "','" & txtADaddress2 & "','" & txtADaddress3 & "','" & txtADaddress4 & "' ,'" & txtADaddress5 & "','" & txtADPostcode & "','" & txtADaddress_date & "' )"
Set RSad = New ADODB.Recordset
RSad.Open Which, cn, adOpenKeyset, adLockOptimistic