Quantcast
Channel: VBForums - Database Development
Viewing all articles
Browse latest Browse all 2918

How to edit a field (vb6 access)

$
0
0
Hello everyone
I am a beginner
I want to edit a field but I can't figure out how to do that.
This my code:
Code:

RS.Open "select * from gadesTable where PID = '" & Text2.Text & "' And test = '" & Text5.Text & "'", DB, adOpenStatic, adLockOptimistic
      If Not RS.BOF Then
      RS.delete  'I want to delete the existing value
      RS.MoveNext
    RS.AddNew      'Then add a new value
RS!test = Text6.Text
RS.Update

but the field id deleted without being able to add the new one
Thanks

Viewing all articles
Browse latest Browse all 2918

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>