Formatting existing data in fields.

R

Rob

Hi,

I was wondering if there was a way to format data using a macro in fields
that already exist.

e.g. I have a field called First that contains people's first name, but
often the first letter has not been capatilise ie robert instead of Robert.
Similarly I have a field called City and I would like to capatise all of the
characters in this field.

Any assistance would be appreciated.

Rob
 
S

Steve Schapel

Rob,

In the examples that you gave, you would use an Update Query to update
First to StrConv([First],3) and update City to StrConv([City],1)
 
R

Rob

Many thanks, I needed to open the data in a form to set some other values
and was trying to tidy up the data while doing so, but I used the the script
in a macro to set the value and it is working brilliantly,

Thanks

Rob


Steve Schapel said:
Rob,

In the examples that you gave, you would use an Update Query to update
First to StrConv([First],3) and update City to StrConv([City],1)

--
Steve Schapel, Microsoft Access MVP

Hi,

I was wondering if there was a way to format data using a macro in fields
that already exist.

e.g. I have a field called First that contains people's first name, but
often the first letter has not been capatilise ie robert instead of
Robert.
Similarly I have a field called City and I would like to capatise all of
the characters in this field.

Any assistance would be appreciated.

Rob
 

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

Top