אני עובדת עם אקסס אבל לא יצא לי ממש לעבוד עם לולאות דרך הVB אני מנסה לעבור על נתונים משאילתה כך שעבור כל רשומה תווצר רשומה חדשה בטבלה אחרת קיימת איך רצים עם הלולאה, ואיך אני כותבת לתוך הטבלה?
dim rstSource as recordset dim rstTarget as recordset set rstSource=currentdb.openrecordset("MyQry") set rstTarget =currentdb.openrecordset("NewTable") rstSource.movelast rstSource.movefirst while not rstSource.eof rstTarget.addnew rstTarget("Field1")=rstSource("OrgField") rstTarget.update rstSource.movenext wend rstSource.close set rstSource=nothing rstTarget.close set rstTarget=nothing