+ Reply to Thread
Results 1 to 5 of 5

Import Access table including Headers into 2d Array- Using ADODB Record set

  1. #1
    Forum Contributor
    Join Date
    08-19-2009
    Location
    UAE
    MS-Off Ver
    Excel 2016
    Posts
    167

    Import Access table including Headers into 2d Array- Using ADODB Record set

    Hello,

    I am trying to import data from Access table including headers into an 2d Array, using the below code only getting the records not the fields names.

    Kindly help

    Please Login or Register  to view this content.
    Thanks
    Jude

  2. #2
    Registered User
    Join Date
    04-07-2019
    Location
    Turkey-Ankara-Çubuk
    MS-Off Ver
    Office 2010
    Posts
    52

    Re: Import Access table including Headers into 2d Array- Using ADODB Record set

    You can add it manually with this logic. The number of fields must be equal.
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    08-19-2009
    Location
    UAE
    MS-Off Ver
    Excel 2016
    Posts
    167

    Re: Import Access table including Headers into 2d Array- Using ADODB Record set

    I trying get dynamic without adding manually

  4. #4
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: Import Access table including Headers into 2d Array- Using ADODB Record set

    For example try:
    Please Login or Register  to view this content.
    You now have a 'ttl' variable (with the field names) and you can create from it (as well as from the 'snEmp' variable) a "cumulative" array of field names and data (or insert data from these variables in separate lines of code).

  5. #5
    Forum Contributor
    Join Date
    08-19-2009
    Location
    UAE
    MS-Off Ver
    Excel 2016
    Posts
    167

    Re: Import Access table including Headers into 2d Array- Using ADODB Record set

    Thanks, it helped, i merged ttl with snEmp data

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] VBA filter a 2d array created from an ADODB recordset pulled from Access
    By nigelog in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-22-2021, 08:44 AM
  2. Replies: 3
    Last Post: 04-11-2020, 02:05 AM
  3. [SOLVED] Export whole table with headers from Excel to Access
    By jaryszek in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-06-2016, 03:59 AM
  4. Use an Excel Macro in Access VBA - Import text file in Access Table
    By joogibabu in forum Access Tables & Databases
    Replies: 3
    Last Post: 10-08-2014, 10:04 AM
  5. Updating a record that exists in access database using ADODB
    By ixgunxi in forum Access Programming / VBA / Macros
    Replies: 0
    Last Post: 10-11-2012, 03:33 PM
  6. Search for a record from Access table
    By LisaPatch in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-03-2011, 07:45 AM
  7. [SOLVED] New record in table in Access from VBA in Excel
    By JCanyoneer in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-24-2005, 05:06 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1