How do I set the properities of a surname field in a table to create an input
mask that will capitalise the first letter of each surname?
xRoach's suggestion will work...partially. It will capitalize only the
first LETTER of the field, and lowercase the rest - and that only as a
display, not changing what's actually stored. This will give you
values like Mcdonald (for McDonald), Van der steen (for van der
Steen), and Smith-hawken (for Smith-Hawken).
You may want to use some VBA code in the Form control's AfterUpdate
event ( you do need a form, tables have no usable events):
Private Sub txtSurname_AfterUpdate()
If StrComp(Me!txtSurname, LCase(Me!txtSurname), 0) <> 0 Then
Me!txtSurname = StrConv(Me!txtSurname, vbProperCase)
End If
End Sub
This will leave mixed case fields alone, but will take names in all
lower case and convert them to Proper Case (Each Word Capitalized,
Including Hyphenated-names).
John W. Vinson[MVP]