Solved

How do you subtract part of a data input?

Posted on 2006-11-01
3
224 Views
Last Modified: 2010-04-23
I got a field that returns .doc on the end of every piece of data in that field.  I need to subtract the .doc from every piece of data every time it is called.  Does anyone know how to do this.  

Thanks
0
Comment
Question by:Paulconsulting
[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
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
ZeonFlash earned 500 total points
ID: 17852617
Where is your "data" coming from?  A dataset?

Dim strName As String = "MyDocument.doc"
strName = strName.Replace(".doc", "")
MsgBox(strName)  'Now has "MyDocument"
0
 

Author Comment

by:Paulconsulting
ID: 17852663
An access database.

It is being called and returns a value into a label, from that label, I need to subtract part of what is being retuned, and make what is remaining into a string.
0
 

Author Comment

by:Paulconsulting
ID: 17852721
Thanks, that worked just how I needed it to.
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

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