Input Mask (1 Viewer)

Lyncroft

QPR for ever
Local time
Today, 18:31
Joined
May 18, 2002
Messages
168
I've a form with an input mask for Surname. The mask is >L<?????????????. The problem is when someone wants to type in O'Reilly for instance it won't accept the '. Is there any way around this.

Thanks in advance
 

DBL

Registered User.
Local time
Today, 18:31
Joined
Feb 20, 2002
Messages
659
You could handle it slightly differently. You could let the user enter the surname in any format they want and then convert it to uppercase after they have updated the field.

On the AfterUpdate event of the field put:

Me.yourfieldname = UCase(Me.yourfieldname)
 

Lyncroft

QPR for ever
Local time
Today, 18:31
Joined
May 18, 2002
Messages
168
DBL - Thanks for that. It gets round the apostrophe problem nicely. Unfortunately it makes the whole word upper case. I just want the first letter upper case as in Fox. In the case of O'Reilly I'm not fussed if the R remain lower case.

Any ideas
 

lorenzoaj

Registered User.
Local time
Today, 11:31
Joined
Nov 26, 2001
Messages
32
I use this in the after update of my text box. It changes the first letter to capital.


Me!YourFieldName = fProperCase(Me!YourFieldName)

AJ
 

DBL

Registered User.
Local time
Today, 18:31
Joined
Feb 20, 2002
Messages
659
Sorry Lyncroft, missread your original post, hope lorenzoaj's suggestion has solved it for you.
 

Users who are viewing this thread

Top Bottom