Trying to show data from DB in MaskEdBox - phone number.
Following steps from MaskedBox for Phone I have this code:
Line 1 - should eliminate Mask, I guess, but after executing this line, box shows [tt] (___) ___-____[/tt] (initial mask)
Line 2 - box shows empty. Great!
Line 3 - box shows [tt]1235551212[/tt], data from DB, great!
Line 4 - data gone, box shows mask: [tt] (___) ___-____[/tt], no data :-(
So what should I do to populate MaskEdBox and show the phone as (123) 555-1212?
Have fun.
---- Andy
There is a great need for a sarcasm font.
Following steps from MaskedBox for Phone I have this code:
Code:
With MyRecordSet
...
mebPhone.Mask = "" [green]'1[/green]
mebPhone.Text = "" [green]'2[/green]
mebPhone.Text = !SUPERV_PHONE.Value [green]'3[/green]
mebPhone.Mask = "(###)###-####" [green]'4[/green]
....
End With
Line 1 - should eliminate Mask, I guess, but after executing this line, box shows [tt] (___) ___-____[/tt] (initial mask)
Line 2 - box shows empty. Great!
Line 3 - box shows [tt]1235551212[/tt], data from DB, great!
Line 4 - data gone, box shows mask: [tt] (___) ___-____[/tt], no data :-(
So what should I do to populate MaskEdBox and show the phone as (123) 555-1212?
Have fun.
---- Andy
There is a great need for a sarcasm font.