Hello
I am trying to import a txt file to an access database.....But i get the following error
"Field F1 does not exist in table APL"
I am using the following syntax
Dim appAccess As Object
Set appAccess = CreateObject("Access.Application.9"
On Error GoTo errData
appAccess.OpenCurrentDatabase "c:\Access\Trans.mdb", True
DoCmd.TransferText acImportDelim, , "APL", "c:\import\Hcm0600.txt"
Exit Sub
errData:
MsgBox "Error" & Err.Description
End sub
Could somebody tell me the reason for the error. Basically i need to load data from a text file to an access database.
Thanks [sig][/sig]
I am trying to import a txt file to an access database.....But i get the following error
"Field F1 does not exist in table APL"
I am using the following syntax
Dim appAccess As Object
Set appAccess = CreateObject("Access.Application.9"
On Error GoTo errData
appAccess.OpenCurrentDatabase "c:\Access\Trans.mdb", True
DoCmd.TransferText acImportDelim, , "APL", "c:\import\Hcm0600.txt"
Exit Sub
errData:
MsgBox "Error" & Err.Description
End sub
Could somebody tell me the reason for the error. Basically i need to load data from a text file to an access database.
Thanks [sig][/sig]