時,當我在VB中的文本框中輸入訪問數據庫和日期比較日期我的SQL語句返回空日期。在我看來,這兩個日期是不同的格式,所以從select語句返回null,但我怎麼去做這件事。請幫助。我的選擇如下:如何從Access數據庫日期texbox在VB
("SELECT farmer_num as [FARMER'S NUMBER], " & _
"farmer_name as [FARMER'S NAME], farmer_village as [VILLAGE], farmer_phone as [PHONE NUMBER], reg_date as [REGISTRATION DATE], " & _
"farmer_centre as [CENTRE] FROM farmer where reg_date =" & TextBox.Text.ToString, cnn)`
非常感謝你。我剛剛閱讀鏈接,並添加了###,現在一切正常。 – ken 2012-03-26 18:17:37