Access 2007 - What does "Option Compare Database" mean?

Experts,

What does "Option Compare Database" mean? Are there other "options" I should know about as a beginner programmer, to insert at the beginning of my code?
JC_LivesAsked:
Who is Participating?
 
peter57rCommented:
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..

0
 
JC_LivesAuthor Commented:
Cool people!! Thanks!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.