Special Edition Using Microsoft Office Access 2003
Tests of text data in fields of tables, query result sets, and Recordset objects against String or Variant text data in modules depends on the value of the Option Compare... statement, which appears in the Declarations section of the Utility Functions module. To determine how text comparisons are made in the module, you can use any of the following statements:
Access adds Option Compare Database to the Declarations section when you create a new module, overriding the default. Binary and Database are keywords in VBA, but these words don't have the same meaning when used in the Option Compare... statement. For compatibility with changes in possible future releases of Access, you should not use Compare or Text as names of variables. |