[SQL ] access and vba 中使用 where...and...

看板Database作者 (慢跑中毒)時間14年前 (2011/04/01 01:44), 編輯推噓0(002)
留言2則, 2人參與, 最新討論串1/1
小弟最近在念資料庫 有一段一直看不懂 目前有三個table s,sp,p 我試著用vba去讀取 access中所建的這三個table select * from sp where (s.s#=sp.s#) and (sp.p#=p.p#); 可是一直出現automation error 不知道是不是這樣的語法access不支援? 已經有試著寫過類似select * from sp where sp.s#='s1' and sp.p#='p1'; 資料是跑得出來的 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 111.70.57.130

04/01 09:30, , 1F
s跟p沒有出現在from或著join- -!
04/01 09:30, 1F

04/01 12:25, , 2F
因為你只有FROM SP阿 XD
04/01 12:25, 2F
文章代碼(AID): #1DbBrkRl (Database)