Solved

How do you subtract part of a data input?

Posted on 2006-11-01
3
200 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Replacing HTML tags in Textarea/Textbox 5 47
DataGridview Currency Formating? 22 53
Vb.net dynamic formulas in runtime 11 61
Variable Event ? 3 23
Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
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.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now