Dear all,
Acess 2000. Here is may problem : i want to extract the path of
my DB without thr name of the DB file, something like
D:\MyFolder\ I use this code but the Instrrev line is not
accepted : error (5) and (I try to translate) : incorect argument
or or procedure call. What is wrong ? (References ?)
Private Sub Form_Open(Cance l As Integer)
Dim Bigpath As String
Dim SmallPath As String
Dim Slashloc As Integer
Bigpath = CurrentProject. FullName ' ok
Slashloc = InStrRev(Chemin Complet, "\", Len(Bigpath)) ' this line
failed (?), Len(bigpath) works
Path = Left(CheminComp let, Slashloc)
End Sub
Thank you
Alan--
_______________ _______________ ___
Site photo personnel :
Acess 2000. Here is may problem : i want to extract the path of
my DB without thr name of the DB file, something like
D:\MyFolder\ I use this code but the Instrrev line is not
accepted : error (5) and (I try to translate) : incorect argument
or or procedure call. What is wrong ? (References ?)
Private Sub Form_Open(Cance l As Integer)
Dim Bigpath As String
Dim SmallPath As String
Dim Slashloc As Integer
Bigpath = CurrentProject. FullName ' ok
Slashloc = InStrRev(Chemin Complet, "\", Len(Bigpath)) ' this line
failed (?), Len(bigpath) works
Path = Left(CheminComp let, Slashloc)
End Sub
Thank you
Alan--
_______________ _______________ ___
Site photo personnel :
Comment