Solved

strip characters in field

Posted on 2013-02-04
3
337 Views
Last Modified: 2013-02-04
Access 2010

I have a table called "NoPic_Picture_NotAll"
Field called "Material_no" text

In this field I have a list of jpg names...(no actaual pics)

What I need:
I need to delete the ".JPG" FROM Every record in this field.

1a003.jpg
10a255.jpg
3aa34.jpg

So the result would be:
1a003
10a255
3aa34



Thanks
fordraiders
0
Comment
Question by:fordraiders
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 26

Accepted Solution

by:
jerryb30 earned 400 total points
ID: 38851544
update someTable set somefield = replace(someField, ".jpg", "")
0
 
LVL 13

Assisted Solution

by:Surone1
Surone1 earned 100 total points
ID: 38851545
"update NoPic_Picture_NotAll set Material_no = replace(Material_no,'.jpg','')"

or if you donot want to modify the table and just  display the modified sting in a query use:

replace(Material_no,'.jpg','') as MatNo
0
 
LVL 3

Author Closing Comment

by:fordraiders
ID: 38851563
Thanks folks
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question