Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Overflow Messages With Analyzing Data
Message
 
À
21/11/2001 16:14:42
Jason Dalio
Northern Interior Regional Health Board
Prince George, Colombie Britannique, Canada
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Divers
Thread ID:
00584696
Message ID:
00584926
Vues:
32
OK - here we go

Dim strSQL As String
Dim rst As ADODB.Recordset
Dim blnSuccess As Boolean
Dim strUser As String
Dim strSleep As String
Dim intSession As Integer
Dim intTable As Integer



With rst
.ActiveConnection = globNLF
.CursorLocation = adUseClient
.CursorType = adOpenStatic
.LockType = adLockOptimistic
.Source = " SELECT * FROM OrderPad "
End With
Do Until rst.EOF
Do Until rst.EOF
'Log in first Session, User and Table
strUser = rst!tCreatedUserID
intSession = rst!niSessionNumber
intTable = rst!nlTableNumber

rst.MoveNext
If rst.EOF Then
GoTo EndOfField
End If

If rst!niSessionNumber = intSession Then
If rst!tCreatedUserID = strUser Then
If rst!nlTableNumber = intTable Then
rst!Message = "Duplicate Order"
rst!MessageID = 2
rst.Update
ElseIf rst!nlTableNumber <> intTable + 1 Then
rst!Message = "Out of Order"
rst!MessageID = 1
rst.Update
End If
End If
End If
Loop

Loop
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform