Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

access vba course - removing unwanted characters tex

Forum home » Delegate support and help forum » Microsoft Access Training and help » access vba course - Removing unwanted characters from a text field

access vba course - Removing unwanted characters from a text field

ResolvedVersion Standard

Richard has attended:
Access Advanced course

Removing unwanted characters from a text field

I have been provided a text file that I have imported into Access 2003. The file contains over 190,000 records.

One of the fields is a contact ID, an example of a contact ID is as follows:
{0000001F-0000-0000-0000-000000000000}

I want to remove the { } from every contact ID

I have been playing around with the Left and Right commands but cannot get it to work.

When the first { is removed I do not want it replaced with a space, but instead the entire contact id is to move one space to the left.

The right } just needs to be removed.

Can you please advise me on the best way of achieving this?

Thank you

Richard

RE: Removing unwanted characters from a text field

You can use Find and Replace to do this.

-Open the table
-Open Find and Replace (Ctrl+H)
-enter { in the find box
-leave the replace box empty
-under LOOK IN select the field you want to look in
-under MATCH choose Any part of field

Let me know if that works

Regards
Richard

Access tip:

Switchboard Startup

An option when you open your Access database that contains all of you tables, forms and queries is only the switchboard is displayed.

To achieve this, select Tools click on Startup. On the right hand side of the Startup screen you are able to select which form you want to open when you open you Access Database. Once you have selected this, there is a check box just below that says "Display Database Window", you need to uncheck this option. Then click ok.

Then when you close you Access database and re open it, the database should open with just the switchboard being shown


View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.