Jama, Ken and Jeff have given you good responses, but understated how
important this is. If you write VBA code, Option Explicit will save your
sanity!
If you do not use Option Explicit, and you type a name that Access does not
recognise, it must makes up a new variable with that name. You know nothing
about this, so you merrily code on, assuming that you are processing a
variable, a control or something, whereas VBA is processing something
completely different.
When you have finished writing your routine, you might not notice that
something is wrong. The program just never works the way you planned, and
noone realises. Believe me: I have seen cases like that in examining
databases, some that ran like this for over a decade!
If you did notice the results were incorrect, how will you find where it
went wrong? You have dozens of lines--possibly hundreds or even
thousands--and you are going to have to print them all out and carefully
read every line to try to find whether you mis-spelled a variable, or
whether there is a problem with the algorithm, or ???
*Anything* that can help catch a misspelling before the program goes awry
will save you days of debugging.
I presume you did read the link Jeff gave you, where Tom Wickerath quotes
Microsoft, but it's worth including for anyone else who is reading this
thread:
"However, every experienced developer knows that the failure to use the
Option Explicit statement to force explicit variable declaration is a coding
blunder of the highest order. Using undeclared variables can introduce
subtle, hard-to-find bugs into your code that are easily avoided by using
this one, simple technique."