To resolve this issue, use the appropriate method.
Method 1: Verify the non-Unicode language
If you are running the VBA code on a Microsoft Windows XP-based computer or on a Windows 2000-based computer, you may be able to resolve this issue by changing the non-Unicode language setting on the computer where you are running the VBA code. To verify and to change the non-Unicode language setting, follow these steps.
Note Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are, see your product documentation to complete these steps.
- Click Start, click Run, type Intl.cpl, and then click
OK. - Under Language for non-Unicode programs on the Advanced tab, verify that the language matches the language on the computer on which you created the event handler, the function, or the subroutine. If the language differs, click the language that you want, and then click OK.
- Restart the computer.
Method 2: Remove accented characters or special characters from the VBA code and from database objects
To resolve this issue, remove any accented characters or special characters that appear in the VBA code or in database objects. For example, form sections and report sections that were created in localized versions of Access may contain accented characters or special characters.
To rename an Access object, or a section in an Access object, that contains accented characters or special characters, follow these steps:
- Start Access, and then open the database that you want.
- Right-click the form or report that you want, and then click Design view.
- Right-click the object that you want, and then click
Properties. - On the All tab in the
Name box, type a name that does not contain accented characters or special characters. - After you rename the objects, open Visual Basic Editor to determine whether your changes appear in the VBA code. The objects may retain the original names. If this behavior occurs, you must manually rename the objects in the VBA code.