Format Code

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi I am trying to set up a code so that when values are entered in a form
they are displayed with capital letters at the start of each word for example
a name entered john smith would be viewed as John Smith.

Somebody very kindly sent me the following code to use afterupdate event but
as I am very new to access I am not really sure how to use this can anyone
help?

[FieldName] =strConv([FieldName],3)
 
TURNIP said:
Hi I am trying to set up a code so that when values are entered in a form
they are displayed with capital letters at the start of each word for example
a name entered john smith would be viewed as John Smith.

Somebody very kindly sent me the following code to use afterupdate event but
as I am very new to access I am not really sure how to use this can anyone
help?

[FieldName] =strConv([FieldName],3)


First, open the form in design view and select the text box
where you want this to happen. Then display its Properties
sheet (View menu).

Scan down the list of properties under the Events tab until
you find AfterUpdate. Enter [Event Procedure] in the
property and then click on the build button [...] in the
right margin. This will take you to the Visual Basic Editor
with the cursor ready for you to type your line of code.
When you enter the code, enter the name of the text box
instead of "FieldName".
 

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