Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default get data and field name using querytables

Set rs = db.OpenRecordset("select * from tbl")
Set qt = sht.QueryTables.Add(rs, sht.[a1])
qt.Refresh 1

in that case, field name occur, that good. but a name is
made(ex:ExternalData1), that no good. And CopyFromRecordset method
doesn't bring the field name.

i want to write in that sheet with only data and field name using
querytables.



*** Sent via Developersdex http://www.developersdex.com ***
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
calculated field based on data field Vanessa Excel Discussion (Misc queries) 0 February 20th 08 01:57 AM
Pivot Field in Field List but Not Source Data AP[_2_] Excel Discussion (Misc queries) 0 November 1st 07 04:06 PM
Click in one field and data presented in another field gravesen Excel Discussion (Misc queries) 0 July 31st 06 05:48 AM
data in primay field changed however subsequent field does not upd tan Excel Discussion (Misc queries) 1 July 24th 06 07:07 PM
Can you use QueryTables & iqy file to post web data? dazman[_8_] Excel Programming 0 August 14th 05 09:44 PM


All times are GMT +1. The time now is 02:31 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"