LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default table is be or not be

the following data is be in [a2:c2] row in the current sheet.
dbtext, dbdate, dblong
by the way, the following below, the source code don't work.
i want to charater to integer.

Sub sbSqlTblMak(srAcesPat, tblNam, sht, aFildType)
Dim tbl As DAO.TableDef
Set dbAces = OpenDatabase(srAcesPat)
Set tbl = dbAces.CreateTableDef(tblNam)
For i = 0 To UBound(aFildType)
tbl.Fields.Append tbl.CreateField(sht.Cells(1, i + 1), aFildType(i))
Next
dbAces.TableDefs.Append tbl
End Sub

Sub sbSqlTblMak_tst()
dbAcesPat = "c:\xl\dev\dbOK.mdb"
namTbl = "tblX"
Dim ary(2)
For i = 0 To 2
ary(i) = CLng(ActiveSheet.Cells(2, i + 1).value)
Next
Call sbSqlTblMak(dbAcesPat, namTbl, ActiveSheet, ary)
End Sub


*** Sent via Developersdex http://www.developersdex.com ***
 
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
Pivit table- cell on spread sheet referencing pivot table field David M Charts and Charting in Excel 2 August 18th 07 07:46 PM
entry removed from source table remains in pivot table pull down EL in Melb. Excel Worksheet Functions 1 September 6th 06 07:59 AM
PIVOT TABLE - Summary Table into a Databasae Table. sansk_23 Excel Worksheet Functions 4 May 9th 05 07:45 AM
VBA Code for a pivot table to open database and to reference table current page Pete Straman Straman via OfficeKB.com Excel Programming 0 February 21st 05 03:57 AM
create a source table from a special pasted value dynamic crossed table Tom Ogilvy Excel Programming 0 September 29th 03 08:59 PM


All times are GMT +1. The time now is 07:47 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"