Re: Masked Edit Box Problem
I had some problems with Mask Edit. It did not clear when record did not contain any data in a field bound to that box. Maybe it will help you somehow. I solved it this way - in reposition event of DC I wrote:
With MaskEdPhone
.Refresh
If IsNull(datAccount.Recordset("[Account Phone]")) = true then
.Mask = "" 'delete mask, because text property will not be cleared without this
.Text = ""
.Mask = "(###) ###-####" 'restore mask
else
.Mask = "(###) ###-####"
End If
End With
Vlad Chapranov
Re: Masked Edit Box Problem
You might want to check your properties for the masked edit control to ensure that the PromptInclude property is set to TRUE. The reason for this is the mask you are using "##/##/##" contains the literal characters "/" which are either included or excluded from the control's .Text value based on the setting of this property. If the property is set to FALSE the slashes will not be included and the actual .Text value will result in mmddyy instead of mm/dd/yy, which will generate an error when you try to update a bound date field.