LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default Creating an access table with ADO

What are you trying to do? Are you trying to populate at table that you
create on the fly or are you trying to create multiple tables on the fly? It
is hard to tell from what you have here.

"JJ" wrote:

Does anyone know how to turn this into a Loop? I don't want to hardcode my
table field names. Thank you in advance!

Field1 = ActiveWorkbook.Worksheets("mysheet1").Range("C1"). Value
Field2 = ActiveWorkbook.Worksheets("mysheet2").Range("D1"). Value
Field3 = ActiveWorkbook.Worksheets("mysheet3").Range("E1"). Value

cnn.Execute _
"CREATE TABLE tblOutput(" & _
Field1 & " VARCHAR(1) NOT NULL," & _
Field2 & " VARCHAR(20) NOT NULL," & _
Field3 & " VARCHAR(20) NOT NULL)"

 
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
How can I detail Pivot Table data without creating a table (Excel2007) Skeletiko[_2_] Excel Discussion (Misc queries) 1 May 5th 10 08:22 AM
How can I detail Pivot Table data without creating a table (Excel2007) Skeletiko Excel Discussion (Misc queries) 0 May 5th 10 12:21 AM
Creating pivot table from Access database Cam Excel Discussion (Misc queries) 1 March 19th 08 06:28 PM
Creating spreadsheet from access query. projectmergeleader Excel Discussion (Misc queries) 1 September 6th 07 03:48 PM
Creating Access DB PO Excel Programming 6 August 25th 04 11:40 AM


All times are GMT +1. The time now is 07:23 PM.

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

About Us

"It's about Microsoft Excel"