haroun2005
Messages postés27Date d'inscriptionlundi 19 décembre 2005StatutMembreDernière intervention 5 juin 2006
-
26 mai 2006 à 09:01
haroun2005
Messages postés27Date d'inscriptionlundi 19 décembre 2005StatutMembreDernière intervention 5 juin 2006
-
29 mai 2006 à 09:48
salut, dans connection string d'un dataenvironment je voudrais introduire la App.Path & \mabase.mdb et non c:\.....\mabase.mdb.
j'ai essayé le DataEnvironment3.Connection1.ConnectionString = " data source= " & App.Path & "\bd_mora\bd_moura.mdb;Persist Security Info=False;Jet OLEDB:Database Password=motdepass"
mais ca n'a pas marché, j'ai cherché dans le forum et pas de solution!
y'a t il une sol? et merci
haroun2005
Messages postés27Date d'inscriptionlundi 19 décembre 2005StatutMembreDernière intervention 5 juin 2006 29 mai 2006 à 09:48
enfin j'ai essayé le code suivant:
Set Connection1 = New Connection
With DataEnvironment3.Connection1
.Provider = "Microsoft.Jet.OLEDB.4.0"
.ConnectionString = " data source= " & App.Path & "\bd_morassalati\bd_mourassalati.mdb;Persist Security Info=False"
'.Open
End With
DataEnvironment3.Connection1.Open
haroun2005
Messages postés27Date d'inscriptionlundi 19 décembre 2005StatutMembreDernière intervention 5 juin 2006 26 mai 2006 à 09:50
il m'affiche une fenetre "select data source" pour choisir DSN, il ignore completement la path.
j'ai essayé DataEnvironment3.Connection1
with .ConnectionString = App.Path & "\bd_mora\bd_moura.mdb;Persist Security Info=False;Jet OLEDB:Database Password=motdepass"
-->utilisation incorrecte de la proriété!