I've been working for days on trying to import a simple text file which is in the format below (16 columns, each separated by a
MF;;Admin;;;21152;SB WCTR LAB;11/07/04;21:44:44;1;;;;;;0
I've tried the following command which doesn't work because this looks for commas as a delimiter. This code when ran places everying into one cell (I guess I could work with this but seems like a lot of work). I used to have a Spec file in my mdb but now that it's an adp the spec file will NOT work (I can't even create a spec file - the save as option is available).
DoCmd.TransferText acImportDelim, , "Upload", PortPath & "\UPLOAD.TXT", False
Can anyone help??? I've tried stuff like:
lngHandle = FreeFile()
FileName = PortPath & "\UPLOAD.TXT"
Delimiter = ";"
Open FileName For Input As lngHandle
Not sure where to go after this....
MF;;Admin;;;21152;SB WCTR LAB;11/07/04;21:44:44;1;;;;;;0
I've tried the following command which doesn't work because this looks for commas as a delimiter. This code when ran places everying into one cell (I guess I could work with this but seems like a lot of work). I used to have a Spec file in my mdb but now that it's an adp the spec file will NOT work (I can't even create a spec file - the save as option is available).
DoCmd.TransferText acImportDelim, , "Upload", PortPath & "\UPLOAD.TXT", False
Can anyone help??? I've tried stuff like:
lngHandle = FreeFile()
FileName = PortPath & "\UPLOAD.TXT"
Delimiter = ";"
Open FileName For Input As lngHandle
Not sure where to go after this....