Results 1 to 2 of 2
  1. #1
    jgelpi16 is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Mar 2010
    Location
    Charlotte, NC
    Posts
    544

    Question TransferSpreadsheet - Use first row as field names

    when using the TransferSpreadsheet method how do you tell Access to use the first row as headers for the table? Here is my current code...

    Code:
    DoCmd.TransferSpreadsheet acImport, , "tblOvertime_Import", vFilePath & vFileName


  2. #2
    jgelpi16 is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Mar 2010
    Location
    Charlotte, NC
    Posts
    544
    So simple....

    Notice the end of the code.

    Original Code:
    Code:
    DoCmd.TransferSpreadsheet acImport, , "tblOvertime_Import", vFilePath & vFileName
    New Code:
    Code:
    DoCmd.TransferSpreadsheet acImport, , "tblOvertime_Import", vFilePath & vFileName, True

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Get Field names from a table in CurrentDB()
    By e.badin in forum Programming
    Replies: 8
    Last Post: 01-06-2011, 02:17 AM
  2. How to retrieve field names in a table
    By pkstormy in forum Code Repository
    Replies: 0
    Last Post: 12-05-2010, 09:09 PM
  3. using like with field names
    By TheShabz in forum Queries
    Replies: 4
    Last Post: 10-07-2010, 05:11 PM
  4. Quick way to stuff field names into text field
    By kfinpgh in forum Programming
    Replies: 0
    Last Post: 01-04-2007, 01:13 PM
  5. How to extract names from 1 large field
    By Tepin in forum Access
    Replies: 1
    Last Post: 12-04-2006, 01:14 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums