I am having difficultly importing a text file into Access through an automated process. I have a form created with a button that will run the process. I'm not understanding what information is needed to provide the DoCmd.TransferText acImportFixed, SpecificationName, TableName, FileName, HasFields protcol. Based upon what I have read, this is what I have intreputted each part as.
acImportFixed = Specifies if I'm importing or exporting. In my case, I'm importing a fixed column file.
SpecificiationName = Specifies if I am using a special file Saved under the Advance options when importing a file. Mine is saved as Attendee/Registrant Import Converter
TableName = Which table I will saving my file as??? <-- Not too sure on this one
FileName = This is the file path of the text file I am importing??? <-- Not too sure on this one either.
Has Fields = I have specified Yes, meaning if my file has row headers.
Currently, this is what my code looks like:
DoCmd.TransferText acImportFixed, "Attendee/Registrant Import Converter", TableName1, "H:\file_0102.txt", Yes
If anyone can help really understand this method I would appreciate all your help and support.
Thanks in advance. Paul
paul_wilson74@hotmail.com
acImportFixed = Specifies if I'm importing or exporting. In my case, I'm importing a fixed column file.
SpecificiationName = Specifies if I am using a special file Saved under the Advance options when importing a file. Mine is saved as Attendee/Registrant Import Converter
TableName = Which table I will saving my file as??? <-- Not too sure on this one
FileName = This is the file path of the text file I am importing??? <-- Not too sure on this one either.
Has Fields = I have specified Yes, meaning if my file has row headers.
Currently, this is what my code looks like:
DoCmd.TransferText acImportFixed, "Attendee/Registrant Import Converter", TableName1, "H:\file_0102.txt", Yes
If anyone can help really understand this method I would appreciate all your help and support.
Thanks in advance. Paul
paul_wilson74@hotmail.com