access vba course - removing unwanted characters tex
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

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

resolvedResolved · Low Priority · Version Standard

replyReply Wed 30 May 2007, 10:18Delegate Richard said...

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

For upcoming training course dates see: Pricing & availability

replyReply Fri 1 Jun 2007, 10:05Trainer Richard said...

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:

Label printing

You can create a report in Access for printing labels All you have to do is is click New under the Reports object and then select Label Wizard and follow the steps

View all Access hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard