- 帖子
- 72
- 主題
- 13
- 精華
- 0
- 積分
- 90
- 點名
- 0
- 作業系統
- windows xp
- 軟體版本
- office 2000
- 閱讀權限
- 20
- 性別
- 女
- 註冊時間
- 2011-2-14
- 最後登錄
- 2024-10-13
|
本帖最後由 jackyliu 於 2011-2-27 07:07 編輯
1. 請教一下 連結資料庫以下語法 ,哪裡出了問題可否幫忙.
(撈取ABC資料庫 時間大於等於今天日期, 如: 2011-02-27 )
.CommandText = Array(
"SELECT * " & Chr(13) & "" & Chr(10) & _
"FROM ABC " & Chr(13) & "" & Chr(10) & _
"WHERE START_TIME>=NOW()")
2. 撈取資料庫完後, excel 自動另存新檔 和 excel 關閉; 要如何做.
3. .FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.PreserveColumnInfo = True
.Refresh BackgroundQuery:=False
以上這些 程式code 都一定要嗎? 我是用巨集 錄製 後產生出來的.... 不知道可以精簡嗎? |
|