C
Cheese_whiz
I want to know how to modify the display of data input by a user. I'm sure a
"classic" example would be to take a 7 digit number (phone number) and add a
hyphen to it when the phone number field loses focus.
I think I need code in the after update field, but I don't know how to tell
it how to display the numbers. I think the start would be something like
this:
Sub phoneField_after update
If Len(me.phoneField) = 7, then me.phoneField = something & "-" & something
End If
End Sub
Can someone fill in the somethings and just verify that's the right way to
go about it? I searched but I don't even know what you'd call this "process"
of modifying and then redisplaying user input.
Does it change things if I don't necessarily want the added elements (like
the hypen) actually stored in the table?
Thanks (again),
CW
"classic" example would be to take a 7 digit number (phone number) and add a
hyphen to it when the phone number field loses focus.
I think I need code in the after update field, but I don't know how to tell
it how to display the numbers. I think the start would be something like
this:
Sub phoneField_after update
If Len(me.phoneField) = 7, then me.phoneField = something & "-" & something
End If
End Sub
Can someone fill in the somethings and just verify that's the right way to
go about it? I searched but I don't even know what you'd call this "process"
of modifying and then redisplaying user input.
Does it change things if I don't necessarily want the added elements (like
the hypen) actually stored in the table?
Thanks (again),
CW