BUG: First of Two Bound Masked Edit Controls Clears on AddNew (142927)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 4.0
- Microsoft Visual Basic Professional Edition for Windows 4.0
- Microsoft Visual Basic Enterprise Edition for Windows 4.0
This article was previously published under Q142927 SYMPTOMS
Only the first of two bound Masked Edit Controls clears when clicking on
the move next button off the last record of the recordset when the
EOFAction property of the data control is set to 2-Add New.
CAUSE
When you click on the move next button to add a new record, both Masked
Edit Controls should clear. This is a bug between the interaction of the
data control and the Masked Edit Box control.
WORKAROUND
Place the following code in the Validate event of the data control:
Private Sub Data1_Validate(Action As Integer, Save As Integer)
If Action = vbDataActionAddNew Then
MaskEdBox1.SelText = ""
MaskEdBox2.SelText = ""
End If
End Sub
STATUS
Microsoft has confirmed this to be a issue in the Microsoft products listed
at the beginning of the article. We are researching this problem and will
post new information here in the Microsoft Knowledge Base as it becomes
available.
Modification Type: | Major | Last Reviewed: | 11/18/2003 |
---|
Keywords: | kbbug KB142927 |
---|
|