P polyubi Registered User. Local time Tomorrow, 01:36 Joined May 11, 2010 Messages 27 Jul 24, 2010 #1 Could any people tell me how to import a text file from the second line to a table? because 1st line contains useless word. thanks in advance!!
Could any people tell me how to import a text file from the second line to a table? because 1st line contains useless word. thanks in advance!!
V vbaInet AWF VIP Local time Today, 18:36 Joined Jan 22, 2010 Messages 26,374 Jul 24, 2010 #2 Use the Import Wizard and follow the instructions. There's a part that will ask you whether your file contains Headings or not.
Use the Import Wizard and follow the instructions. There's a part that will ask you whether your file contains Headings or not.
P polyubi Registered User. Local time Tomorrow, 01:36 Joined May 11, 2010 Messages 27 Jul 24, 2010 #3 the heading is on the second line. and I need vba code to del with this kinda situations
V vbaInet AWF VIP Local time Today, 18:36 Joined Jan 22, 2010 Messages 26,374 Jul 24, 2010 #4 I'm sure what is on the first line can be deleted because I would imagine it's a "super" heading. Get rid of it and make the heading the first line. If you want to perform a more advanced kind of import then you would need to look into two things (using vba): 1. File Scripting Object or Reading from Excel file using vba 2. INSERT into statement plus Docmd.Runsql
I'm sure what is on the first line can be deleted because I would imagine it's a "super" heading. Get rid of it and make the heading the first line. If you want to perform a more advanced kind of import then you would need to look into two things (using vba): 1. File Scripting Object or Reading from Excel file using vba 2. INSERT into statement plus Docmd.Runsql
P polyubi Registered User. Local time Tomorrow, 01:36 Joined May 11, 2010 Messages 27 Jul 24, 2010 #5 Thanks VbaInet. Yes it is correct. But I am no good at vba code therefore need help.
ChrisO Registered User. Local time Tomorrow, 03:36 Joined Apr 30, 2003 Messages 3,202 Jul 24, 2010 #6 In order to help with a VBA solution, people will need two things: - 1. The actual text file or at least the top 10 or so lines. 2. The table structure and the correlation between the fields in the table and the ‘fields’ in the text file.
In order to help with a VBA solution, people will need two things: - 1. The actual text file or at least the top 10 or so lines. 2. The table structure and the correlation between the fields in the table and the ‘fields’ in the text file.