Double check the Name of this text box. You may have a field named
Course_Name, but the text box might be something else (such as Text0.) You
need to use the text box name.
Double check that the AfterUpdate property of the text box is set to:
[Event Procedure]
Temporarily add another line such as:
Debug.Print "Course_Name_AfterUpdate() at " & Now()
Then when you expected it to run, open the Immediate Window (Ctrl+G) and see
if the procedure ran at all.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users -
http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"UnknownJoe" <(E-Mail Removed)> wrote in message
news:4C1DFAEF-BDF6-4373-AA00-(E-Mail Removed)...
> I have a form that allows for data entry of high school courses. Within
> the
> form is a field called Course_Name that I would like to apply vbPropercase
> so
> any word(s) entered within the field are converted to "Capital Letters for
> each word entered" - ex. introduction to physics = Introduction To
> Physics.
> I put in the following code on the Course_Name field but it doesn't seem
> to
> work. I entered data in the field and still no capital letters.
>
> Private Sub Course_Name_AfterUpdate()
> Me.Course_Name = StrConv(Me.Course_Name, vbProperCase)
> End Sub
>
> Would there be any problems caused by property settings within the form
> itself?
>
> Any help would be appreciated.
> Thanks.