| | |
edit the current data save in table
![]() |
•
•
Join Date: Jul 2008
Posts: 161
Reputation:
Solved Threads: 1
all i want is change all the record in my table if the pcarrier="Credit" but my problem is only one data have been changes. .
help thanks. .
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Set rs = New ADODB.Recordset rs.Open "Select * from Soldto where cno='" & Combo1.Text & "'", cn, adOpenKeyset, adLockPessimistic If rs!pcarrier = "Credit" Then Do Until rs.EOF rs!pcarrier = "Paid" rs.MoveNext rs.Update Loop End If
help thanks. .
•
•
Join Date: Mar 2009
Posts: 807
Reputation:
Solved Threads: 147
Try something like...
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
If rs.BOF = False AND rs.EOF = False AND rs.RecordCount <> 0 Then rs.MoveFirst Do While Not Rs.EOF rs.Edit rs!pcarrier = "Paid" rs.Update rs.MoveNext Loop End If
![]() |
Similar Threads
- 'Object variable or With block variable not set' Error (ASP.NET)
- PLS I NEED YOUR HELP! Help on Reading and Editing of already Written CODE on php! (PHP)
- Problems with saving 1st record (Visual Basic 4 / 5 / 6)
- Random programs won't run (Viruses, Spyware and other Nasties)
- memory management in wndows 2000 (Windows NT / 2000 / XP)
- Struggling with Captcha (PHP)
- System.stackoverflowexception (VB.NET)
- Address Book Application... (here's what I have done so far..) (C++)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: How to di this....
- Next Thread: MS Access - load record to form from button click on another?
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






