Assuming you're using Access 2000 or later, use something like this in
the control's or form's BeforeUpdate event procedure. Must be VBA, can't
be a macro. Repeat for each control in which you want the replacement to
happen.
With Me.NameOfControl
.Value = Replace(.Value, " ", " ")
End With
>Ok, they have agreed to add a form to enter the data, so
>that we have more options. It will be a very basic form
[quoted text clipped - 48 lines]
>>Please respond in the newgroup and not by email.
>>.
--
John Nurick [Microsoft Access MVP]
Please respond in the newgroup and not by email.
ChelleV - 16 Dec 2003 20:15 GMT
John,
Thank you for all of your addvice. This code below worked
in the BeforeUpdate event procedure. They have agreed to
simply change all double spaces, including following a
period, to single. In this case, it works fine.
Please ignore my later post, I wasn't sure anyone went
back in and read these nested messages.
Thanks again!
>-----Original Message-----
>Assuming you're using Access 2000 or later, use something like this in
[quoted text clipped - 64 lines]
>Please respond in the newgroup and not by email.
>.
John Nurick - 17 Dec 2003 07:18 GMT
I'm glad it worked.
When people answer a question they always look out for further posts in
the same thread. If you have a follow-up you should always post in the
original thread so that the whole context is available when people are
reading it (unless so many days have passed that the original messages
may no longer be available).
>John,
>
[quoted text clipped - 82 lines]
>>Please respond in the newgroup and not by email.
>>.
--
John Nurick [Microsoft Access MVP]
Please respond in the newgroup and not by email.