Formating

B

BroJames

I have Access Office 2000 Premium. WinXP home, 1.2Ghz with 512MB memory.

Isn't there a way to format a field so that the first letter is Capitalized
even though it may have been entered as all lowercase letters.

I.E.,

entered: auto format:
john John
John John
JOHN John

I tried to use >L<?????????????? but in the field it changed everything to
L?????????????? and when I went back to check the field data it had changed
the formula to ><"L???????????????"

What do I need to do?
 
V

Van T. Dinh

Check Access Help for the differences between Format Property and InputMask
Property.

What you posted looks like the syntax for InputMask rather than Format.

I am not sure whether you want to retain the values as entered and simply
displayed with first letter of each word capitalised or you want to *update*
the Field values so that the stored value only has the first letter of each
word capitalised.

You will need to use the StrConv function to do this conversion for format
or update. For example:

?StrConv("abcd efgh", vbProperCase)
Abcd Efgh

?StrConv("ABCD EFGH", vbProperCase)
Abcd Efgh

If you want to use StrConv in a Query, vbProperCase is not recognised so you
need to use its literal value 3 like:

ProperCaseVal: StrConv([RequiredField], 3)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top