Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

BUG: A message does not appear in right-to-left reading order when you use the MsgBox function with the VbMsgBoxRtlReading constant in Access


View products that this article applies to.

This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).

↑ Back to the top


Symptoms

When you use the MsgBox function with the vbMsgBoxRtlReading constant, a message does not appear in right-to-left reading order.

↑ Back to the top


Resolution

To work around this problem, add a form instead of using the MsgBox function. Set the Orientation property of the form to right-to-left. Also, you can set the following properties of the form to make the form behave like a message box:
Collapse this tableExpand this table
Property NameValue
Pop UpYes
Dividing LinesNo
Record SelectorsNo
Navigation ButtonsNo
Min Max ButtonsNone
Border StyleDialog

↑ Back to the top


More information

Steps to reproduce the behavior

  1. Create a blank database.
  2. Create a new module, and then add the following test code to the new module:
    Sub Test()
    	Msgbox "abcde", vbMsgBoxRtlReading + vbCritical
    End Sub
    
  3. On the View menu, click Immediate Window.
  4. Type Test in the Immediate window, and then press the ENTER key.

    The message does not appear in right-to-left reading order.

↑ Back to the top


Status

Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


Keywords: KB829008, kbbug, kbfunctions, kbprogramming

↑ Back to the top

Article Info
Article ID : 829008
Revision : 3
Created on : 5/25/2007
Published on : 5/25/2007
Exists online : False
Views : 239