14be3 Delete Query
Sign Up |  Live StatsLive Stats    Articles 37,330| Comments 177,241| Members 19,409, Newest tanu sandhu| Online 484
Home Contact
 (Forgotten?): 
    Sikhism
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Click Here to Register/Sign Up Daily Hukamnama Member Blogs Downloads Website Navigation Help Fonts Tags

Delete Query

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
Delete Query Error "Can't delete from specified tables Maureen227 Information Technology 6 28-Jul-2006 08:41 AM
How to make DELETE query using relations Domac Information Technology 2 28-Jul-2006 08:37 AM
delete query me Information Technology 7 28-Jul-2006 08:25 AM
RE: Delete query based on another query Ofer Cohen Information Technology 0 28-Jul-2006 08:23 AM
add delete query to button Brian Information Technology 1 28-Jul-2006 08:07 AM


Tags
delete, query
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:31 AM
GOL's Avatar GOL
Guest
 
Posts: n/a
   
   
Delete Query

  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 need to delete everything before the first numeral in a field.
For example, I have: Old Hickory, TN, 99385
I want this to only read the zip: 99385
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/12697-delete-query.html

Help please......

*







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:31 AM
Allen Browne's Avatar Allen Browne
Guest
 
Posts: n/a
   
   
Re: Delete Query

If the zip is the last item in the FullAddress field, you could use:
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12697
ParseWord([FullAddress], -1, " ", True, True)
where the ParseWord() function is copied from here:
http://allenbrowne.com/func-10.html

Or, you could pull all the numbers out of the field with:
DropNonDigit([FullAddress])
where the DropNonDigit() function is below.

Function DropNonDigit(varIn As Variant) As Variant
Dim i As Integer
Dim strOut As String
Dim iChar As Integer

If Not IsNull(varIn) Then
For i = 1 To Len(varIn)
iChar = Asc(Mid(varIn, i, 1))
If iChar >= vbKey0 And iChar <= vbKey9 Then
strOut = strOut & Chr$(iChar)
End If
Next
End If

If strOut = vbNullString Then
DropNonDigit = Null
Else
DropNonDigit = strOut
End If
End Function

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12697

"GOL" wrote in message
news:2EAC2046-9337-4C60-A9F1-0D03B7E1B27D@microsoft.com...
>I need to delete everything before the first numeral in a field.
> For example, I have: Old Hickory, TN, 99385
> I want this to only read the zip: 99385
>
> Help please......



Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:31 AM
GOL's Avatar GOL
Guest
 
Posts: n/a
   
   
RE: Delete Query

Thanks, the DropNonDigit function works well, however the ParseWord seems to
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12697
have a few errors when ran. I could not pinpoint code problem.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12697

"GOL" wrote:

> I need to delete everything before the first numeral in a field.
> For example, I have: Old Hickory, TN, 99385
> I want this to only read the zip: 99385
>
> Help please......

Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:31 AM
efgh's Avatar efgh
Guest
 
Posts: n/a
   
   
Re: Delete Query

  Donate Today!  

"GOL" wrote in message
news:2EAC2046-9337-4C60-A9F1-0D03B7E1B27D@microsoft.com...
>I need to delete everything before the first numeral in a field.
> For example, I have: Old Hickory, TN, 99385
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12697
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12697
> I want this to only read the zip: 99385
>
> Help please......


Have you tried Field = Right(Trim(Field), 5) ?
This assumes that the zip code is always the last 5 characters in the field.


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
Health Exercise And...
Today 02:10 AM
1 Replies, 57 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Today 02:10 AM
176 Replies, 4,485 Views
How Religions Change...
Today 02:07 AM
1 Replies, 88 Views
Keeping Amrit Vela
Today 01:57 AM
11 Replies, 860 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 01:52 AM
313 Replies, 7,568 Views
Man Driving Without...
Today 01:35 AM
4 Replies, 84 Views
Do you believe in...
Today 00:25 AM
192 Replies, 4,010 Views
How does Sikhi help you...
Yesterday 22:54 PM
22 Replies, 878 Views
Losing My Religion: Why...
Yesterday 22:18 PM
12 Replies, 285 Views
Request for assistance...
Yesterday 21:53 PM
5 Replies, 51 Views
Panjabi
By Ishna
Yesterday 17:56 PM
12 Replies, 261 Views
Parkash Guru Amar Das ji...
Yesterday 17:07 PM
3 Replies, 36 Views
Serious challenges to...
Yesterday 16:49 PM
0 Replies, 75 Views
Sikh man fights for his...
Yesterday 16:46 PM
0 Replies, 67 Views
Sikhs Rights Group to...
Yesterday 16:44 PM
0 Replies, 42 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 02:12 AM.
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.37629 seconds with 32 queries
0