如何使用以下字段更正创建数据库:
Dim F As String
Dim S As Long
Dim T As Integer
Dim C As Double //Currency
Dim D As String //Date
F = "ABC"
S = 88869045
T = 9
C = 30.4493 // currency, but can be double
D = "06.08.2010" // date (how to correct convert to date?) //#1
DBTable.Name = "TestTable"
DBTable.Columns.Append "First", adVarWChar, 40
DBTable.Columns.Append 1, adBigInt, 20
DBTable.Columns.Append 0, adInteger
DBTable.Columns.Append 0, adCurrency
DBTable.Columns.Append 0, adDate
DBCatalog.Tables.Append DBTable
还有,DBCatalog as ADOX.Catalog
和DBTable as ADOX.Table
。
另请参阅附加问题#1
。谢谢!