achalrikhi
New Member
- Joined
- Nov 20, 2013
- Messages
- 38
Hello friends,
I am working on a project. I have tried few attempts but could not resolve the issue as I am not very good at vba as I am just a beginner. I am trying a DoCmd statement. Now the prblem is that I am working on three machines, office, home and laptop. all of them are having different file path for my project and the file I am trying to import through docmd statement.
My question is " Can we have a relative OR global file path for the file I want to import, so that the docmd statement will work on every computer. The statement I am using is this :
DoCmd.TransferText acImportDelim, "fo Import Specification", "TblFutures", FileName:="C:\Users\welcome\Desktop\Cash.csv", HasFieldNames:=True
Is it possible to write a file path which is global or relative or at least good enough to work on every machine ?
Please advise.
Regards
Achal
I am working on a project. I have tried few attempts but could not resolve the issue as I am not very good at vba as I am just a beginner. I am trying a DoCmd statement. Now the prblem is that I am working on three machines, office, home and laptop. all of them are having different file path for my project and the file I am trying to import through docmd statement.
My question is " Can we have a relative OR global file path for the file I want to import, so that the docmd statement will work on every computer. The statement I am using is this :
DoCmd.TransferText acImportDelim, "fo Import Specification", "TblFutures", FileName:="C:\Users\welcome\Desktop\Cash.csv", HasFieldNames:=True
Is it possible to write a file path which is global or relative or at least good enough to work on every machine ?
Please advise.
Regards
Achal