資料庫的日期欄位(opendate) 定義為 smalldatetime
日期區間: TXT ~ TXT1
dim txt,txt1 as string
SQL:select opendate from table where opendate between txt
and txt1

執行結果出現error:"準則運算式的資料類型不符合"
這是為什麼呢??是不是有那邊沒注意到??
謝謝大家.....^_^
創作者介紹
創作者 小吳 VBQA 程式設計討論 的頭像
vbqa

小吳 VBQA 程式設計討論

vbqa 發表在 痞客邦 留言(1) 人氣( 13 )