投稿日 | : 2002/09/03(Tue) 11:10 |
投稿者 | : さー |
Eメール | : |
URL | : |
タイトル | : Re^3: VB SQLで アクセステーブルを操作する |
あ すみません。 コピペしてたらこんなことに…
Excute "update B inner join C on B.b1=C.c1 " _
& "set b2('& day(w) &' - day(C.c2))" _
& "where (C.c2 Between # '& format(x,'yy/mm/dd') &' #" _
& "and # '& format(w,'yy/mm/dd') '& #)"
b1=c1が一致しない時
Excute "insert into B (b1 b2 b3) " _
& "select C.c1,'& day(w) &' - day(C.c2),A.a2 " _
& "from A,B inner join C on B.b1=C.c1 " _
& "where ((C.c2 between C.c2 Between # '& format(x,'yy/mm/dd') &' # _
& "and # '& format(w,'yy/mm/dd') '& #) " _
& "and (B.b1 is null))
です
よろしくおねがいします