Solved

transfertext  - If using an import spec, is a header record required, it seems so.....

Posted on 2012-03-14
7
488 Views
Last Modified: 2012-08-13
Hi EE,

transfertext  - If using an import spec, is a header record required, it seems so.....

pls advise, tx, sandra
0
Comment
Question by:mytfein
  • 4
  • 3
7 Comments
 
LVL 15

Accepted Solution

by:
Simon Ball earned 500 total points
ID: 37720841
i think there is an option box to tick when creating the spec to say wether a header record is required.

if you create a spec, you are defining what the column names will be in the spec.  what makes you say "it seems so?"
0
 

Author Comment

by:mytfein
ID: 37720871
hi sudonim,

tx so much for writing...

i will go check if there is an option box for a header....

i created an import specification and experimented:
   - import with header - got all following data records
   - import w/o  header - first record did not get imported, so guessed that access
                                       considered the first record a header record

this file is provided by a vendor w/o a header, so let me see if i can find the tick box that you mention...

will be back, tx, s
0
 

Author Comment

by:mytfein
ID: 37720906
Hi Sudonim,

ok, you inspired me...

the specs window does not have a box to skip the header
    if manually doing an import, it does ask if you have a header

but as i want to do this thru vba,
    went back to code, which i copied off the internet, and there is a TRUE/FALSE parameter
     for field names:

so i set to False:

DoCmd.TransferText acImportDelim, _
      "match_results_136 Import Specification", _
      pg_strTableName_ThisYear_NRMP, _
      Me.txtFolderPathText, _
      False


http://msdn.microsoft.com/en-us/library/aa220768(v=office.11).aspx

will go test it, tx, s
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

Author Comment

by:mytfein
ID: 37720919
Hi Sudonim,

yes... FALSE is what it needed....

tx again, s
0
 

Author Comment

by:mytfein
ID: 37720937
Dear EE public,

Sudonim's questions and help, jogged my brain to understand where the solution may be...
so pls read lower to what i posted to the technical solution....

tx, s
0
 
LVL 15

Expert Comment

by:Simon Ball
ID: 37723786
nicely done.

I don't really deserve the point, but you've put me 2% closer to sage, so many thanks :)
0
 
LVL 15

Expert Comment

by:Simon Ball
ID: 37723792
also,

If you'd mentioned you were using VBA in the original question, i'd have looked into that bit too :)
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Add records to a form to a table 11 41
Trying to open FORM in specific record !! 6 45
VBA SQL statement - 2 "OR"s and 1 "And" 4 27
update all email addresses SQL 1 24
When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question