OVH Cloud OVH Cloud

Le path dans VBA

2 réponses
Avatar
Dave
Bonjour,

Comment fait on pour connaitre le chemin ou se trouve le fichier mdb dans un
module ?
genre application.path

Merci

2 réponses

Avatar
Eric
Bonjour,

avec CurrentProject.Path, non ?

Sub zz()
MsgBox "le chemin de la bd est : " & CurrentProject.Path
End Sub

Bonjour,

Comment fait on pour connaitre le chemin ou se trouve le fichier mdb dans un
module ?
genre application.path

Merci




--
A+
Eric
http://users.skynet.be/mpfa/
Archives : http://groups.google.fr/group/microsoft.public.fr.access?hl=fr

Avatar
pgz
Bonsoir,

Pour le chemin complet avec le nom du fichier, tu peux utiliser
DBEngine.Workspaces(0).Databases(0).Name

Cordialement,
pgz