I am trying to run a query and change the data in a table from UPPER case to just the first letter in each word capitalized. I see there is a Proper () function and I know how to use it in excel but can I use it in a query in MS Access? Please Help!
=Proper([Myfield])<br>
Put your field name in there where my field is. Inside brackets with the equal sign.<br>
<br>
Hey Proper() is not in Access '97 ?????????<br>
Said "keyword not found" in Help<br>
<p> DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br>
If I'm not mistaken, Proper() was an add-in function from one of the mwind.mdb's, there were a whole mess of these utility functions in there. I guess it became so common that it was thought as a defacto 'standard' function.<br>
--Jim
Doug, It did not work. In access 2000 help they call it proper worksheet function. I am not sure if this is just for excel worksheets or not. Thank you.
OK I found it<br>
It's in "Orders.mdb" sample db that comes with Access in "UtilitiesFunctions" Module <br>
here it is<br>
Click your "Modules" tab <br>
Create a New Module<br>
In the white space paste this code then close the module and save changes<br>
-----------------------------------------------------<br>
Public Function Proper(strToChange As String) As String<br>
' Converts string to Proper case<br>
On Error Resume Next<br>
Proper = StrConv(strToChange, vbProperCase)<br>
End Function<br>
-------------------------------------------------------<br>
<p> DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.