473,511 Members | 14,825 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access Db. Remove Characters in a string

2 New Member
I would like to remove characters in the contract id #

If returns like: 948005102-00 or 947138462-05

I would like to remove the last 2 digits and the -

Please healp!

Candy
Dec 15 '14 #1
2 1360
jimatqsi
1,271 Recognized Expert Top Contributor
Candy,
Welcome to Bytes.com. You can remove known characters with the replace function
Expand|Select|Wrap|Line Numbers
  1. Somestring=replace(Somestring,"-","")
You can remove 2 characters from the end with
Expand|Select|Wrap|Line Numbers
  1. Somestring=Left(Somestring,Len(Somestring)-2))
Jim
Dec 15 '14 #2
4DaSmiths
2 New Member
Awesome and THANKS!!!
Dec 15 '14 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
21501
by: soni29 | last post by:
hi, how can i remove a string from an existing string in javascript. i have a textbox in a form and want to make sure that when the user clicks a button that certain words are moved, like all...
5
91915
by: Jon | last post by:
Hello all, Would anyone please be able to help? I would like to remove all characters after and including the @ from a string, for example the string joe.Bloggs@someplace.com would become Joe...
10
1821
by: Chung Leong | last post by:
Just saw a message in pl.comp.lang.php, which states that the following message has appeared in the PHP CVS snapshot: Usage of {} to access string offsets is deprecated and will be removed in...
7
60662
by: Chris Brat | last post by:
Hi, Is there a better way to replace/remove characters (specifically ' and " characters in my case, but it could be anything) in strings in a list, than this example to replace 'a' with 'b': ...
2
2030
by: adi108 | last post by:
hi how does one access parts of string in C. string comes back like this in Hyperterminal LITL0 0000 LITL1 0759 LITL2 0014 LITL3 0024
2
8647
by: rpeacock | last post by:
Is there a way to basically trim off the last X characters in a field? Example Field 1 Value - 15000 Field 2 Value - 2645678 Desired output - 15 Desired output - 2645
10
60438
by: teenIce | last post by:
Hi all, Does anyone have suggestion what can I do to remove some string from a string? Like this : Original : I have a cat. Remove : have Result : I a cat. Thanks in advance.
10
3172
by: Mike Copeland | last post by:
I have data I need to normalize - it's "name" data. For example, I have the following: "Watts, J.C." I wish to (1) parse the "first name" ("J.C.") and adjust it to "JC". Essentially, I want to...
2
2948
by: grinder332518 | last post by:
My pipe delimited file is coming over with spurious “\” characters inserted into some alpha fields, which is causing the records to be split into 2. Eg Abc|def|10/11\ AAAA|xyz ...
0
7252
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7371
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7432
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7093
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5676
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5077
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.