Robert88
Robbie
- Local time
- Today, 23:32
- Joined
- Dec 18, 2004
- Messages
- 335
Hi All,
Another challenge to my life, reading a dat file from CD.
I have looked at other posts on reading .dat files and it is clear that to import a dat file is not possible through the import of files.
I have a standard file which for the purpose of the exercise I will call test.dat which always resides on the root folder of the CD.
I was wondering if it is possible since this file is on CD and I want to use a button on a form to read this files contents (it only contains one number EG. 2154578787454).
So if I break this process down I was wondering if the following is possible using VBA?
1. Copy the file from CD to local machine for temporary use.
2. change name extension from .dat to .txt
This will then allow me to read in the file using the import wizard after I create an import spec for the .txt file if the above is possible????
I hope it is, but shoot me down if it is not.
Look forward to any suggestions.
Robert88
Another challenge to my life, reading a dat file from CD.
I have looked at other posts on reading .dat files and it is clear that to import a dat file is not possible through the import of files.
I have a standard file which for the purpose of the exercise I will call test.dat which always resides on the root folder of the CD.
I was wondering if it is possible since this file is on CD and I want to use a button on a form to read this files contents (it only contains one number EG. 2154578787454).
So if I break this process down I was wondering if the following is possible using VBA?
1. Copy the file from CD to local machine for temporary use.
2. change name extension from .dat to .txt
This will then allow me to read in the file using the import wizard after I create an import spec for the .txt file if the above is possible????
I hope it is, but shoot me down if it is not.
Look forward to any suggestions.
Robert88