Both my last reply and the latest poster's seem to have got lost along the
line somewhere. I probably would have said something like this:
1. To capitalise the titles as they are entered in you data entry form put
the following code in the Movie Name control's AfterUpdate event procedure:
Dim ctrl As Control
Set ctrl = Me.ActiveControl
ctrl = StrConv(ctrl, vbProperCase)
To do this select the Movie Name control in form design view and open its
properties sheet if its not already open. Then select the After Update event
property in the properties sheet. Click on the 'build' button; that's the
one on the right with 3 dots. Select 'Code Builder' in the dialogue, and
click OK. The VBA window will open at the event procedure with the first and
last lines already in place. Enter the lines of code between these two
existing lines.
When a user enters a title, as soon as the control is updated, by pressing
the enter key, tabbing off the control, moving to another record or closing
the form for instance, the value will be converted to proper case. Data
should never be entered or edited in raw datasheet view, always via forms!
2. To convert all existing Movie Name values in the table to proper case
create an update query based on the table. To do this:
2.1 Select 'New' in the queries page of the database window.
2.2 Select 'design view'
2.3 Select you table in the 'Show table' dialogue, click 'Add' and then
close the dialogue.
2.4 Double click on the Movie Name field from the table in the query design
window. It will be added to the design grid.
2.4 From the Query menu select 'Update query'.
2.5 In the 'Update To' row of the Movie Name column in the query design
grid enter:
StrConv([Movie Name], 3)
Movie Name must be the exact name of the field including the space.
2.6 From the Query menu select 'Run' and confirm you want to go ahead when
prompted. Its not necessary to save the query, but you can do so for later
re-use if you wish.
2.7 Examine your table. The Movie Name values should now all be in proper
case as desired.
Ken Sheridan
Stafford, England