A family of Microsoft relational database management systems designed for ease of use.
- You don't need to check that, it should change automatically, by itself, when opening in the different versions. There is no need for you to select it. You should not be selecting anything there.
- My MISTAKE, that should have been Option Compare Database. So it should be...
Option Compare Database
Option Explicit
For an explanation...
Option Compare Database tells your code how to compare strings, numbers, etc. Option Explicit tells your code that each variable needs to be defined for it to be used. This is very important... make sure they're at the top of each module (commented code (in green, something like: 'commented code) can go before these, or empty spaces, but nothing else.
- If you are getting errors using Option Explixit it means you have undeclared variables. Using your example...
For i=o to Ubound( AAA)...
You need to declare i and maybe o, if that is the letter o and not a number (zero)., ie:
Dim i As Long 'If numeric
OR
Dim i As Integer
OR
Dim i As String 'If text