看板 Web_Design 關於我們 聯絡資訊
※ 引述《molucolin (molucolin)》之銘言: : If Request("txtBeginDate") <> "" And Request("txtEndDate") <> "" then : sql="Select * from Database where Date between Request("txtBeginDate") : and Request(txtEndDate)" : End if : 在 sql 雙引號內 要如何加入單引號 我是沒寫過ASP啦..不過你這樣寫應該是不會對吧.. 把sql改成下面的看看 sql = "Select * from Database where Date between '" & Request("txtBeginDate") & "' and '" & Request(txtEndDate) & "'" -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 202.154.192.30 ※ 編輯: abgne 來自: 202.154.192.30 (02/16 12:04)