Need help with vba and access

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

Im having a problem with doing something for hw with access. It says it
wants me to create a function in a form that converts all X field names to
proper case - capitalize the first letter of eac hword, and convert all
other letters to lower-case.
Can anyone help me on writing this one function
 
Function Proper_Case(strWord) as string
Dim Result as string

Result = ucase(left(strWord,1)) & lcase(mid(strWord,2))
Proper_Case=Result
End Function


JL5000
<a href="www.joshdev.com"></a>
 
Check Access VB Help on the StrConv() function.

HTH
Van T. Dinh
MVP (Access)
 

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