1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
Sub test()
Dim n1,n2
Dim DB As DAO.Database
Dim RS As DAO.Recordset
Set DB = Application.CurrentDb
Set RS = DB.OpenRecordset("Difference", dbOpenTable)
RS.MoveFirst
Do
If CStr(RS.Fields("old.scope").Value) <> CStr(RS.Fields("new.scope").Value) Then
n1 = RS.Fields("old.scope").Value
n2 =RS.Fields("new.scope").Value
'comment trouver:Index_company = "bb" finalement ?
Index_company =?
MsgBox n1, n2
End If
RS.MoveNext
Loop Until RS.EOF = True
RS.Close
Set RS = Nothing
Set DB = Nothing
End Sub |
Partager