BUG: First of Two Bound Masked Edit Controls Clears on AddNew
Article ID: 142927
Article Last Modified on 11/18/2003
APPLIES TO
- Microsoft Visual Basic 4.0 Standard Edition
- Microsoft Visual Basic 4.0 Professional Edition
- Microsoft Visual Basic 4.0 Enterprise Edition
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.
Additional query words: 4.00 vb4win
Keywords: kbbug KB142927