how to edit a record in database by using vb6, i don't any clue :(
Shodow
3
Junior Poster
Recommended Answers
Jump to PostWhat database are you using, msaccess, sql, mysql?
What connection are you using, data control or ADO?
Jump to PostDim conn as ADODB.Connection Dim Rs As ADODB.Recordset Set conn = new ADODB.Connection Set Rs = New ADODB.Recordset 'Do your connection to access code here Rs.Open "SELECT * FROM MyTable", conn, adOpenStatic, adLockOptimistic Rs!Fieldname1 = Text1.Text Rs.Update
And that is it...:)
Jump to PostConn.Open = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\YourDatabaseName.MDB;Persist Security Info=False"
Jump to PostWhat do you mean with "highlighted record"? Where is it highlighted?
The code above will edit an existing record that you have chosen.
Jump to PostI also do not understand your picture, what is it suppose to show?
All 28 Replies
AndreRet
526
Senior Poster
Shodow
3
Junior Poster
AndreRet
526
Senior Poster
Shodow
3
Junior Poster
AndreRet
526
Senior Poster
Shodow
3
Junior Poster
Shodow
3
Junior Poster
AndreRet
526
Senior Poster
AndreRet
526
Senior Poster
Shodow
3
Junior Poster
AndreRet
526
Senior Poster
Shodow
3
Junior Poster
abelingaw
69
Posting Whiz in Training
AndreRet
526
Senior Poster
Shodow
3
Junior Poster
Shodow
3
Junior Poster
AndreRet
526
Senior Poster
Shodow
3
Junior Poster
AndreRet
526
Senior Poster
Shodow
3
Junior Poster
AndreRet
526
Senior Poster
Shodow
3
Junior Poster
AndreRet
526
Senior Poster
Shodow
3
Junior Poster
AndreRet
526
Senior Poster
eva.lavinia.5
0
Newbie Poster
rishif2
57
Posting Whiz in Training
hina_7
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.