1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| Option Explicit
Dim bd As New ADODB.Connection
Dim tb As New ADODB.Recordset
Dim tb1 As New ADODB.Recordset
Dim tb2 As New ADODB.Recordset
Dim msg1, msg2 As String
Private Sub Form_Load()
bd.Provider = "microsoft.jet.oledb.4.0"
bd.ConnectionString = App.Path & "\VGP_GMAO.mdb"
tb.Open "select EnOfMAO.NUMEROOF,CODEAFFEC,COMPLAN,LIBPLAN,DELAIMAJ,TEMPSPREV,NUMEROOP,LIBELOPE,TUNIPREVU,*TYPAPPORT,ARTICLE,LIBAPPORT,BESOIN,UNISTOCK from EnappgamMAO, EnOfMAO, EnopeMAO", bd, adOpenDynamic, adLockOptimistic
' tb.MoveFirst
End Sub |
Partager