[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

strip characters in field

Posted on 2013-02-04
3
Medium Priority
?
368 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
3 Comments
 
LVL 26

Accepted Solution

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

Assisted Solution

by:Surone1
Surone1 earned 400 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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

873 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