In Access, how can I always capitalize the first letter of a fiel.

  • Thread starter Thread starter Guest
  • Start date Start date
There is a function, StrConv(). It takes 2 arguements, the string, and the
case. For the case, there are 3 options you will use, 1 (UPPER), 2 (lower),
3 (Proper). The VB constants are vbUpper, vbLower, vbProper.

In your case, you'd want to put something in the BeforeUpdate of the field
like this:
Me.Fieldname=StrConv(Me.Fieldname,vbProper)
 

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

Back
Top