Hi
Your statement above implies that the ID is a unique, positive, sequential number. If so this might work.
Query 1:
UPDATE tblTable SET tblTable.Loop = "1"
WHERE ((([recno]/2-Int([recno]/2))>0));
Query 2:
UPDATE tblTable SET tblTable.Loop = "0"
WHERE ((([recno]/2-Int([recno]/2))=0));
Oops, Should have said ID. Sorry about that. Yes, two separate queries.
UPDATE tblTable SET tblTable.Loop = "1"
WHERE ((([ID]/2-Int([ID]/2))>0));
Query 2:
UPDATE tblTable SET tblTable.Loop = "0"
WHERE ((([ID]/2-Int([ID]/2))=0));
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.