+ Reply to Thread
Results 1 to 8 of 8

data is downloading but is column headers are not displaying please help me out

  1. #1
    Forum Contributor
    Join Date
    03-01-2014
    Location
    Mysore
    MS-Off Ver
    Excel 2007
    Posts
    379

    data is downloading but is column headers are not displaying please help me out

    data is downloading but is column headers are not displaying
    i have created table called tblbatch_headers in database

    1st (batch headers)column name --> wds next 2nd column as Field1,Field2,Field3,Field4,Field5,Field6,Field7,Field8,Field9,Field10...etc

    Please Login or Register  to view this content.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: data is downloading but is column headers are not displaying please help me out

    CopyFromRecordset doesn't include the field names. You have to loop and add those yourself.
    Please Login or Register  to view this content.
    for example.
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Contributor
    Join Date
    03-01-2014
    Location
    Mysore
    MS-Off Ver
    Excel 2007
    Posts
    379

    Re: data is downloading but is column headers are not displaying please help me out

    i want to display column headers as (WDS_id,.......)

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: data is downloading but is column headers are not displaying please help me out

    What precisely is the problem?

    You have a SQL string to return the headers from another table, you have another recordset and you have a line to put that recordset onto the worksheet (albeit all this code is commented out). What doesn't work?

  5. #5
    Forum Contributor
    Join Date
    03-01-2014
    Location
    Mysore
    MS-Off Ver
    Excel 2007
    Posts
    379

    Re: data is downloading but is column headers are not displaying please help me out

    i want the header should be displayed as column name(headers)---->
    example
    |wds_id | Field1 | Field2 | Field3 -->headers

    1 dfnhj mndsb mndsb

    it should come like this format

  6. #6
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: data is downloading but is column headers are not displaying please help me out

    As far as I can see, I've answered that.

  7. #7
    Forum Contributor
    Join Date
    03-01-2014
    Location
    Mysore
    MS-Off Ver
    Excel 2007
    Posts
    379

    Re: data is downloading but is column headers are not displaying please help me out

    I am getting compile error

    invalid or unqualified reference

    Please Login or Register  to view this content.

  8. #8
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: data is downloading but is column headers are not displaying please help me out

    Your loop is in the wrong place (you can't use a recordset before you open it) and missing a reference to rst2:

    Please Login or Register  to view this content.

+ 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] Move Data From One Column to Another based on column headers and Row Text
    By DerbysGal in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 02-10-2014, 07:21 AM
  2. Downloading files based on column data.
    By X82 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-24-2012, 11:21 PM
  3. Replies: 2
    Last Post: 05-09-2012, 01:30 PM
  4. Copying Data into column Headers
    By nisar642 in forum Excel General
    Replies: 1
    Last Post: 08-10-2010, 06:06 PM
  5. [SOLVED] Downloading Refreshed Web Query Data into Adjacent Column
    By SteveC in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-07-2006, 12:35 PM

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