Visualizzazione dei risultati da 1 a 3 su 3
  1. #1

    errore nella transazione

    Salve ragazzi ho un problema con una transazione

    questo e' il codice:

    codice:
       On Error Resume Next
       
       lweb2kdb.BeginTrans
       
       If lweb2kdb.Errors.Count > 0 Then
    
          lweb2kdb.RollBackTrans 
    %>
          <tr>
             <td> Errore durante l' aggiornamento</td>
          </tr>
    <%
    
       Else
          
          lweb2kdb.CommitTrans
    		
    'ESEGUO LE MIE QUERY				
    		
    	
    
    %>
       <tr>
          <td> Operazione Effettuata</td>
       </tr>
    <%
    end if
    ' CHIUDO TUTTO
    rs4.Close
    set rs4=Nothing	
    rs1.Close
    set rs1=Nothing	
    %>
    L' inserimento nel db lo fa, ma se commento l' On Error Resume Next
    mi da questo errore:

    ADODB.Recordset error '800a0e78'
    Operation is not allowed when the object is closed.

    ?????

  2. #2
    Moderatore di ASP e MS Server L'avatar di Roby_72
    Registrato dal
    Aug 2001
    Messaggi
    19,559
    Entrambi i recorset 1 e 4 che usi sono aperti?

    Roby

  3. #3
    si , apro i 2 recordset

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.