VBA Text Transfer for files with non standard extensions

rob0r

New member
Local time
Today, 21:44
Joined
Feb 19, 2009
Messages
7
Hello,

I was wondering if anyone could help me with a problem I've been having, and one I'm not sure can be fixed. I have a machine that produces user activity logs that are a flat text file, but with the extension ".log" . The code below will work if I change the extension to .txt, but will not work with the .log file. Is there any way round this?

Thanks in advance for any help,

Rob

Code:
Sub transfer()
Dim path As String
path = "c:\log\022009\user_activity.log"
DoCmd.TransferText acImportFixed, "user_spec", "Userlog", path
End Sub
 
Oh, just for the record, the specification was setup using the .txt file since the import wizard didn't recognise the .log file, hence why I think this might not be fixable.
 

Users who are viewing this thread

Back
Top Bottom