PCDVD數位科技討論區

PCDVD數位科技討論區 (https://www.pcdvd.com.tw/index.php)
-   疑難雜症區 (https://www.pcdvd.com.tw/forumdisplay.php?f=34)
-   -   問個VB的查詢問題~(急) (https://www.pcdvd.com.tw/showthread.php?t=333361)

22053447 2004-05-11 09:42 PM

問個VB的查詢問題~(急)
 
這個問題好難喔~希望高手能夠來幫我解題一下
不知道以下方法能不能做到,希望大大們幫忙解答
目前我有兩個資料庫,a資料庫裡面是儲存此本書的借出日期(date)
b資料庫裡面是儲存這本書可以借出幾天(rtime)
然後我想要印出(a資料庫裡的借出日期+b資料庫裡的借出天數)>今天日期
不知道有沒有辦法?
目前我已經寫了一下程式碼,可是有錯誤請大大幫忙看一下
SQL = "select * from rent where (date+(select rtime from book where num=rent.num) > date()) order by date"
Form3.Data3.RecordSource = SQL
Form3.Data3.Refresh


所有的時間均為GMT +8。 現在的時間是01:15 PM.

vBulletin Version 3.0.1
powered_by_vbulletin 2026。