1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| Sub b4_Onclick
arr = form1.a1.value
If arr <> "xxx" Then
Dim MyVar
MyVar = MsgBox ("Est-ce un arrêt générique ?", 4, "Référencement de l'arrêt")
QQchose = Split(arr, "#")
Desc = QQchose(0)
Lieu = QQchose(1)
If MyVar = 6 Then
SQL = "Update PoteauRef Set Qualite = 'O' Where description Like '" & Desc & "%'"
SQL = SQL + " And commune Like '" & Lieu & "%'"
Else
SQL = "Update PoteauRef Set Qualite = 'N' Where description Like '" & Desc & "%'"
SQL = SQL + " And commune Like '" & Lieu & "%'"
End If
form1.submit
Else
alert "Veuillez sélectionner un arrêt"
End If
End Sub |
Partager