<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Visual Basic 6.0</title><link>https://www.dotnetzone.gr:443/cs/forums/25/ShowForum.aspx</link><description>Θέματα που αφορούν την VB6 και COM components</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: RecordSet AddNew</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/58452.aspx</link><pubDate>Fri, 30 Apr 2010 19:34:10 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:58452</guid><dc:creator>Vagele</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/58452.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=25&amp;PostID=58452</wfw:commentRss><description>Σε μία while recordest.EOF=false μετά το τέλος της και αφού κάνω κάποιες συγκεκριμένες διαγραφές πρέπει να κάνω και update, όμως εκεί χτυπάει και λέει "Either BOF or EOF is True, or the current record has been deleted". Όντως μετά το τέλος της while το eof=true. Τι μπορώ να κάνω ώστε να γίνει τελικά το update;</description></item><item><title>Απ: RecordSet AddNew</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/58448.aspx</link><pubDate>Fri, 30 Apr 2010 17:48:43 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:58448</guid><dc:creator>George J. Capnias</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/58448.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=25&amp;PostID=58448</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://www.dotnetzone.gr/cs/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Vagele:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Όταν κάνεις recordset.addnew και μετά recordset.update γίνεται εισαγωγή στην βάση σωστά; 
&lt;DIV&gt;Πως γίνεται λοιπόν από αυτή την τελευταία εγγραφή να πάρω κάποια τιμή;&lt;/DIV&gt;
&lt;P&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/P&gt;
&lt;P&gt;Μισό εδώ - δεν χρειάζεται να γράψεις transaction ή store procedure για να παίξει αυτό - αν το connection έχει&amp;nbsp;client cursor και είναι dynamic, ώστε φαίνονται οι αλλαγές κατευθείαν στο recordset, τότε μετά το recordset.Update() στο recordset.Fields("primarykey").value θα έχει την τιμή που πήρε το primary key. Κώδικας που παίζει επάνω στη γνωστή "Northwind" και κάνω ακριβώς αυτό:&lt;/P&gt;
&lt;P&gt;
&lt;TABLE style="BORDER-BOTTOM:#e5e5e5 1px solid;BORDER-LEFT:#e5e5e5 1px solid;BACKGROUND-COLOR:#f2f2f2;BORDER-TOP:#e5e5e5 1px solid;BORDER-RIGHT:#e5e5e5 1px solid;" border=0 cellSpacing=0 cellPadding=0 width="100%"&gt;

&lt;TR style="LINE-HEIGHT:normal;VERTICAL-ALIGN:top;"&gt;
&lt;TD style="TEXT-ALIGN:right;WIDTH:40px;"&gt;&lt;PRE style="PADDING-BOTTOM:2px;MARGIN:0px;PADDING-LEFT:2px;PADDING-RIGHT:2px;FONT-FAMILY:courier new;COLOR:gray;FONT-SIZE:11px;BORDER-RIGHT:#e7e7e7 1px solid;PADDING-TOP:2px;"&gt;1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 &lt;/PRE&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;PRE style="PADDING-BOTTOM:2px;MARGIN:0px;PADDING-LEFT:8px;PADDING-RIGHT:2px;PADDING-TOP:2px;"&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:black;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;    ConnString &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:#e4e4e4;FONT-FAMILY:Courier New;COLOR:#666666;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;"Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Northwind;Data Source=."&lt;/SPAN&gt;
    &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;Set&lt;/SPAN&gt; Conn &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;New&lt;/SPAN&gt; ADODB.Connection
    Conn.CursorLocation &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;=&lt;/SPAN&gt; adUseClient
    Conn.Open ConnString
    
    &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;Set&lt;/SPAN&gt; Results &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;New&lt;/SPAN&gt; ADODB.Recordset
    &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;Set&lt;/SPAN&gt; Results.ActiveConnection &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;=&lt;/SPAN&gt; Conn
    Results.CursorLocation &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;=&lt;/SPAN&gt; adUseClient
    Results.Open &lt;SPAN style="BACKGROUND-COLOR:#e4e4e4;FONT-FAMILY:Courier New;COLOR:#666666;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;"Orders"&lt;/SPAN&gt;, Conn, adOpenDynamic, adLockOptimistic, adCmdTableDirect
    
    Debug.&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;Print&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;IIf&lt;/SPAN&gt;(Results.Supports(adResync), &lt;SPAN style="BACKGROUND-COLOR:#e4e4e4;FONT-FAMILY:Courier New;COLOR:#666666;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;"Supports"&lt;/SPAN&gt;, &lt;SPAN style="BACKGROUND-COLOR:#e4e4e4;FONT-FAMILY:Courier New;COLOR:#666666;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;"Don't Support"&lt;/SPAN&gt;) &amp;amp; &lt;SPAN style="BACKGROUND-COLOR:#e4e4e4;FONT-FAMILY:Courier New;COLOR:#666666;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;" Resync"&lt;/SPAN&gt;
    
    Results.AddNew
    Results.Fields(&lt;SPAN style="BACKGROUND-COLOR:#e4e4e4;FONT-FAMILY:Courier New;COLOR:#666666;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;"CustomerID"&lt;/SPAN&gt;) &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:#e4e4e4;FONT-FAMILY:Courier New;COLOR:#666666;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;"ALFKI"&lt;/SPAN&gt;
    Results.Fields(&lt;SPAN style="BACKGROUND-COLOR:#e4e4e4;FONT-FAMILY:Courier New;COLOR:#666666;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;"EmployeeID"&lt;/SPAN&gt;) &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;=&lt;/SPAN&gt; 1
    Results.Update
    
    &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:green;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;'Results.Resync adAffectCurrent&lt;/SPAN&gt;
    &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;MsgBox&lt;/SPAN&gt; Results.Fields(&lt;SPAN style="BACKGROUND-COLOR:#e4e4e4;FONT-FAMILY:Courier New;COLOR:#666666;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;"OrderID"&lt;/SPAN&gt;).Value
                
    Results.Close
    Conn.Close&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;George J.&lt;BR&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Απ: RecordSet AddNew</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/58432.aspx</link><pubDate>Thu, 29 Apr 2010 22:25:13 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:58432</guid><dc:creator>Antonios Chatzipavlis</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/58432.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=25&amp;PostID=58432</wfw:commentRss><description>&lt;P&gt;Εάν έχεις ένα και μόνο ένα δεν έχει νοήμα να χρησιμοποίεις begin tran έτσι και αλλιώς και το ένα, transaction είναι &lt;/P&gt;</description></item><item><title>Απ: RecordSet AddNew</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/58431.aspx</link><pubDate>Thu, 29 Apr 2010 22:11:19 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:58431</guid><dc:creator>Vagele</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/58431.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=25&amp;PostID=58431</wfw:commentRss><description>Κάτι ακόμα. Στον&amp;nbsp;συνδυασμό&amp;nbsp;VB6 με SQL Server 2005 είναι καλύτερο να&amp;nbsp;χρησιμοποιούμε&amp;nbsp;transactions και τα&amp;nbsp;αντίστοιχα&amp;nbsp;insert, update, delete ή τα addnew, update, delete των recordset; Ελπίζω να μην σε μπέρδεψα.</description></item><item><title>Απ: RecordSet AddNew</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/58429.aspx</link><pubDate>Thu, 29 Apr 2010 21:31:04 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:58429</guid><dc:creator>Vagele</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/58429.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=25&amp;PostID=58429</wfw:commentRss><description>Ακριβώς αυτό ήθελα. Ευχαριστώ.</description></item><item><title>Απ: RecordSet AddNew</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/58428.aspx</link><pubDate>Thu, 29 Apr 2010 21:28:38 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:58428</guid><dc:creator>Antonios Chatzipavlis</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/58428.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=25&amp;PostID=58428</wfw:commentRss><description>&lt;P&gt;Λοιπόν αν κατάλαβα καλά.&lt;/P&gt;
&lt;P&gt;Μετά το update αν θέλεις να διαβάσεις την εγγραφή θα πρέπει να την κάνεις read, αλλά αυτό δεν σου χρειάζεται μιας και έχεις τις τιμές των πεδίων. &lt;/P&gt;
&lt;P&gt;Αυτό που μάλλον θέλεις είναι ρωτήσεις, υποθέτω, είναι να πάρεις την τιμή από κάποιο identity πεδίο.&lt;/P&gt;
&lt;P&gt;Σε αυτή την περίπτωση θα πρέπει να έχεις ένα transaction και με τα από το update να κάνεις ένα select scope_identity() or select @@Identity command.&lt;/P&gt;</description></item><item><title>Απ: RecordSet AddNew</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/58427.aspx</link><pubDate>Thu, 29 Apr 2010 21:15:12 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:58427</guid><dc:creator>Vagele</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/58427.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=25&amp;PostID=58427</wfw:commentRss><description>Όταν κάνεις recordset.addnew και μετά recordset.update γίνεται εισαγωγή στην βάση σωστά;&lt;div&gt;Πως γίνεται λοιπόν από αυτή την τελευταία εγγραφή να πάρω κάποια τιμή;&lt;/div&gt;</description></item><item><title>Απ: RecordSet AddNew</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/58426.aspx</link><pubDate>Thu, 29 Apr 2010 20:55:43 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:58426</guid><dc:creator>Antonios Chatzipavlis</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/58426.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=25&amp;PostID=58426</wfw:commentRss><description>Γίνε λίγο ποιο σαφής γιατί δεν το καταλαβα</description></item><item><title>Απ: RecordSet AddNew</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/58421.aspx</link><pubDate>Thu, 29 Apr 2010 19:32:14 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:58421</guid><dc:creator>Vagele</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/58421.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=25&amp;PostID=58421</wfw:commentRss><description>Όταν κάνουμε ένα addnew και μετά update πως παίρνουμε από την τελευταία αυτή εγγραφή στον server την τιμή&amp;nbsp;μιας&amp;nbsp;συγκεκριμένης στήλης του πίνακα;</description></item><item><title>Απ: RecordSet AddNew</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/58419.aspx</link><pubDate>Thu, 29 Apr 2010 06:35:09 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:58419</guid><dc:creator>Antonios Chatzipavlis</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/58419.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=25&amp;PostID=58419</wfw:commentRss><description>&lt;P&gt;Correct!&lt;/P&gt;</description></item><item><title>Απ: RecordSet AddNew</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/58416.aspx</link><pubDate>Thu, 29 Apr 2010 05:41:29 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:58416</guid><dc:creator>Vagele</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/58416.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=25&amp;PostID=58416</wfw:commentRss><description>Αν για το ίδιο connection χρησιμοποιώ πολλά recordset (στην περίπτωση μου 3) το&amp;nbsp;&lt;span class="Apple-style-span" style="font-family:Tahoma, Arial, Helvetica;"&gt;myConnection.CommitTrans το βάζω μετά μία φορά και μετά την ολοκλήρωση και των τριών; Κι αν το πρόβλημα είναι π.χ. στο δεύτερο recordset αλλά στο πρώτο έχει γίνει κανονικά update τότε το rollback θα ξαναγυρίσει το πρώτο στην αρχική του κατάσταση;&lt;/span&gt;</description></item><item><title>Απ: RecordSet AddNew</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/58412.aspx</link><pubDate>Thu, 29 Apr 2010 05:25:04 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:58412</guid><dc:creator>Antonios Chatzipavlis</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/58412.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=25&amp;PostID=58412</wfw:commentRss><description>&lt;P&gt;Έαν έχεις ένα κεντρικό ναι, ή θα το βάλεις στο σημείο που ελέγχεις τα λάθη από το transaction εαν έχεις δύο παγίδες λαθών δες παρακατω&lt;/P&gt;
&lt;P&gt;Dim myConnection As ADODB.Connection&lt;BR&gt;Dim myRecordset As ADODB.Recordset&lt;BR&gt;&lt;BR&gt;Set myConnection = New ADODB.Connection&lt;BR&gt;Set myRecordset = New ADODB.Recordset&lt;BR&gt;&lt;BR&gt;myConnection.ConnectionString = "Provider=Microsoft.Jet.OLEDB.3.51;Data Source=c:\BegDB\Biblio.mdb"&lt;BR&gt;&lt;BR&gt;&lt;I&gt;'—Open the connection --&lt;/I&gt;&lt;BR&gt;myConnection.Open&lt;BR&gt;&lt;BR&gt;&lt;I&gt;'Determine if we conected.&lt;/I&gt;&lt;BR&gt;If myConnection.State = adStateOpen Then&lt;BR&gt;&lt;BR&gt;&amp;nbsp; myRecordset.Open "SELECT * FROM TITLES", myConnection, _&lt;BR&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; adOpenDynamic, adLockOptimistic, adCmdTable&lt;BR&gt;Else&lt;BR&gt;&amp;nbsp; MsgBox "The connection could not be made."&lt;BR&gt;&amp;nbsp; myConnection.Close&lt;BR&gt;&amp;nbsp; Exit Sub&lt;BR&gt;End If&lt;BR&gt;&lt;BR&gt;&lt;I&gt;'—just to be sure --&lt;/I&gt;&lt;BR&gt;myRecordset.MoveFirst&lt;BR&gt;&lt;BR&gt;On Error GoTo transError&lt;BR&gt;&lt;BR&gt;&lt;I&gt;'—here is the top of the transaction sandwich --&lt;/I&gt;&lt;BR&gt;myConnection.BeginTrans&lt;BR&gt;&lt;BR&gt;While Not myRecordset.EOF&lt;BR&gt; &amp;nbsp;&amp;nbsp; mcounter = mcounter + 1&lt;BR&gt; &amp;nbsp;&amp;nbsp; myRecordset!Title = myRecordset!Title &amp;amp; ""&amp;nbsp; '&lt;I&gt;so we don't really change it&lt;/I&gt;&lt;BR&gt; &amp;nbsp;&amp;nbsp; myRecordset.Update&lt;BR&gt; &amp;nbsp;&amp;nbsp; myRecordset.MoveNext&lt;BR&gt;Wend&lt;BR&gt;&lt;BR&gt;&lt;I&gt;'—if we got here ok, then everything is written at once&lt;/I&gt;&lt;BR&gt;myConnection.CommitTrans&lt;BR&gt;myRecordset.Close&lt;BR&gt;myConnection.Close&lt;BR&gt;&lt;BR&gt;Exit Sub&lt;BR&gt;&lt;BR&gt;transError:&lt;BR&gt;&amp;nbsp;&amp;nbsp; myConnection.RollBack&lt;BR&gt;&amp;nbsp;&amp;nbsp; myRecordset.Close&lt;BR&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myConnection.Close&lt;BR&gt;&amp;nbsp;&amp;nbsp; MsgBox Err.Description&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Απ: RecordSet AddNew</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/58408.aspx</link><pubDate>Thu, 29 Apr 2010 04:38:01 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:58408</guid><dc:creator>Vagele</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/58408.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=25&amp;PostID=58408</wfw:commentRss><description>Το rollback πρέπει να το βάλω στο on error go to ?;</description></item><item><title>Απ: RecordSet AddNew</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/58407.aspx</link><pubDate>Thu, 29 Apr 2010 04:24:09 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:58407</guid><dc:creator>Antonios Chatzipavlis</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/58407.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=25&amp;PostID=58407</wfw:commentRss><description>&lt;P&gt;Πάνω στο Connection object υπάρχει η BeginTransaction και το commit και rollback ειναι όλα πάνω στο connection object. Όλα αυτά θα τα πάρεις από το Connection property του recordset&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>RecordSet AddNew</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/58398.aspx</link><pubDate>Thu, 29 Apr 2010 00:29:49 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:58398</guid><dc:creator>Vagele</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/58398.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=25&amp;PostID=58398</wfw:commentRss><description>Ο τίτλος ίσως να μην είναι και σωστός. Θα τον αλλάξω αν χρειαστεί.&lt;div&gt;Ένας γνωστός μου είχε ένα project σε VB6 με access. Το μεταφέραμε λοιπόν σε SQL Server 2005. Ξαναπιάσαμε το project από την αρχή για τις απαραίτητες&amp;nbsp;διορθώσεις. Εδώ λοιπόν έχω κάποιες ερωτήσεις μιας κι&amp;nbsp;έχω&amp;nbsp;ασχοληθεί μόνο με Visual Studio 2008, VB.NET και SQL Server 2008.&lt;/div&gt;&lt;div&gt;Στο κουμπί εισαγωγής νέας εταιρίας με βάση τα στοιχεία που πληκτρολογούμε κάνει Adodc1.RecordSet.AddNew Array(οι στήλες) και μετά&amp;nbsp;Adodc1.Recordset.Update. Κάνει όμως στο ίδιο κουμπί addnew και σε άλλους δύο πίνακες. Στον δεύτερο πίνακα χτυπάει για foreign key και έτσι η εισαγωγή&amp;nbsp;διακόπτεται. Στον πρώτο πίνακα όμως έχουν περαστεί τα δεδομένα κανονικά. Δεν θέλω όμως να γίνεται κάτι τέτοιο την στιγμή που δεν ολοκληρώνονται σωστά οι άλλες εισαγωγές. Υπάρχει κάτι αντίστοιχο όπως το RollBack; Αυτό προς το παρών και έπεται και συνέχεια. Συγνώμη αν τα έγραψα κάπως μπερδεμένα.&lt;/div&gt;</description></item></channel></rss>