simafst
Messages postés37Date d'inscriptiondimanche 20 mai 2007StatutMembreDernière intervention11 juin 2010
-
9 sept. 2009 à 02:25
c148270
Messages postés303Date d'inscriptionmercredi 12 janvier 2005StatutMembreDernière intervention 3 octobre 2013
-
9 sept. 2009 à 10:19
Salut tout le monde ;
j'ai un probléme dans ce code:
Dim db As New ADODB.Connection
Dim MonRs As New ADODB.Recordset
Set db = New ADODB.Connection
Conn = "DRIVER={MySQL ODBC 3.51 Driver};" _
& "SERVER=localhost;" _
& "DATABASE=basev1;" _
& "UID=root;" ' _
& "PWD=sima;"
With db
.ConnectionString = Conn
.CursorLocation = adUseClient
.Open
MonRs.Open "select * from personnel where prenom_per= 'besbes' ", , adOpenStatic, adLockOptimistic, adCmdText
Var = MonRs.GetString(adClipString, , vbTab, vbCrLf, "NULL")
MonRs.Close
J'ai une erreur d'execution 3021 BOF ou EOF est egal à true ou
l'enregistrement actuel a été supprimé. L'opération demandé necessite un
enregistrement actuel.