I have a table with about 1500 bi-weekly records and a requirement to determine if the repeat occurrence will be every odd week or every even week based on the start date.
If it's 0, it's even (divisible by 2). If it's 1,it's odd. Modulus returns the remainder as a whole number. So: 1 mod 10 = 1 2 mod 10 = 2 ... 9 mod 10 = 9 10 mod 10 = 0 11 mod 10 = 1 12 mod 10 = 2
and so on. so you want:
Format(Date(),"WW") Mod 2
which yields 0 for today (week 14), so it's an even week this week. Next week:
Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.
Jim.