Option Compare Database indicates which collation sequence (sort order rules) to be used.
In essence it creates a case-Insensitive operation for text comparisons which is the norm throughout Access.
You can use Option Compare Binary instead which would create case-sensitive text comparisons for operations in that module.
You should use the Tools>Options settings in the VBA window and check the setting which says "Require Variable Declaration".
This will add another statement at the top of each module you subsequently crreate which says
Option Explicit
This option prevents you from using variables which have not been declared explicitly and so is a significant aid in preventing mis-spellings of variables used in code..