147be Trimming off special characters
Sign Up |  Live StatsLive Stats    Articles 37,317| Comments 177,157| Members 19,406, Newest GURBACHANSINGH| Online 548
Home Contact
 (Forgotten?): 
    Sikhism
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Trimming off special characters

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 115 USD (23%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
Can someone answer my question? (Trimming Beard) michaelulukaiu New to Sikhism 15 19-Oct-2012 16:06 PM
Unicode Special Characters SIGS Information Technology 5 28-Jul-2006 08:42 AM
Chinese characters appear lsj6020@bjc.org Information Technology 1 28-Jul-2006 08:17 AM
Trimming off Mr & Mrs. CMcGrann Information Technology 3 28-Jul-2006 08:05 AM
Players thrown out of meet for trimming hair Neutral Singh Sikh News 1 25-Nov-2004 03:09 AM


Tags
trimming, special, characters
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:19 AM
CMcGrann's Avatar CMcGrann
Guest
 
Posts: n/a
   
   
Trimming off special characters

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
I have a field with special characters before and after the info I want
returned. For example:
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/11253-trimming-off-special-characters.html
[["010XQ12345"
["010XQ987654"
I only want what is between the quotes and remove all other characters. Can
I do an update query to do this???

Thanks!

*







Got anything to share on This Topic? Why not share your immediate thoughts/reaction with us! Login Now! or Sign Up Today! to share your views... Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:19 AM
Al Camp's Avatar Al Camp
Guest
 
Posts: n/a
   
   
Re: Trimming off special characters

If you're saying that every string has a (") just before the text you want, and a (")
just after the text you want.
Run an update query against that field (ex. name = [MyStr])...
=Mid([MyStr],InStr([MyStr],Chr(34))+1,Len([MyStr])-InStr([MyStr],Chr(34))-1)

I tested against [["1234ABCD" and ["1234ABCD" and [[[["1234ABCD"

--
hth
Al Camp
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11253


"CMcGrann" wrote in message
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11253
news:B17A6CB5-355C-4EBD-88D3-6824ECB343B1@microsoft.com...
>I have a field with special characters before and after the info I want
> returned. For example:
> [["010XQ12345"
> ["010XQ987654"
> I only want what is between the quotes and remove all other characters. Can
> I do an update query to do this???
>
> Thanks!



Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:19 AM
fredg's Avatar fredg
Guest
 
Posts: n/a
   
   
Re: Trimming off special characters

  Donate Today!  
On Mon, 12 Jun 2006 0601 -0700, CMcGrann wrote:

> I have a field with special characters before and after the info I want
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11253
> returned. For example:
> [["010XQ12345"
> ["010XQ987654"
> I only want what is between the quotes and remove all other characters. Can
> I do an update query to do this???
>
> Thanks!


If your data can look like this..
[["010XQ12345"avbd
and you want
010XQ12345

and you have Access 2000 or newer, then copy and paste the following
code into a module:

Public Function RemoveExcessChr(FieldIn As String) As String

Dim intX As Integer
Dim strString As String
strString = Mid(FieldIn, InStr(FieldIn, Chr(34)) + 1)
strString = Left(strString, InStrRev(strString, Chr(34)) - 1)
RemoveExcessChr = strString

End Function

Next, create an Update query:
Update YourTable Set YourTable.FieldName =
RemoveExcessChr([FieldName]) Where YourTable.FieldName is not null;
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11253
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Active Discussions
What Do You Think of...
Today 19:11 PM
38 Replies, 661 Views
30 Day Amrit Vel 'a'...
Today 18:42 PM
39 Replies, 426 Views
Losing My Religion: Why...
Today 15:33 PM
4 Replies, 119 Views
How does Sikhi help you...
Today 14:28 PM
18 Replies, 760 Views
Do you believe in...
Today 12:00 PM
184 Replies, 3,870 Views
Thought of the Moment!
Today 10:07 AM
109 Replies, 5,128 Views
Amrit
Today 09:17 AM
5 Replies, 361 Views
What I believe Hukam to...
Today 03:15 AM
13 Replies, 168 Views
Should SPN Keep the...
Today 02:02 AM
19 Replies, 596 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 01:46 AM
304 Replies, 7,491 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Today 01:18 AM
173 Replies, 4,402 Views
Student Compares Toilet...
Today 01:05 AM
1 Replies, 88 Views
Map shows world's 'most...
Yesterday 18:58 PM
16 Replies, 290 Views
BHOOTS (Ghosts) and...
Yesterday 13:08 PM
102 Replies, 13,895 Views
Why are There so Many...
Yesterday 10:23 AM
70 Replies, 5,074 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 19:33 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.56145 seconds with 32 queries
0