153c9 Update Query
Sign Up |  Live StatsLive Stats    Articles 37,351| Comments 177,417| Members 19,424, Newest yashpal singh| Online 444
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

Update 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
Update query notifications John In Palmer Information Technology 9 28-Jul-2006 08:42 AM
Update or Append query help B Miller Information Technology 3 28-Jul-2006 08:34 AM
Update Query question troy Information Technology 1 28-Jul-2006 08:11 AM
update query denelson Information Technology 1 28-Jul-2006 08:02 AM
Help With Update Query Smartin Information Technology 2 11-Nov-2005 20:09 PM


Tags
update, query
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 03-Nov-2005, 11:34 AM
Roger Bell's Avatar Roger Bell
Guest
 
Posts: n/a
   
   
Update 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
Is there any way I can design an Update query or other query type to transfer
street numbers which form part af an address field: EG: 21 Smith Street to a
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/6489-update-query.html
new field called Street Number and then Delete just the Street number from
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6489
the existing address field.

New fields would appear as: Street Number : 21; Street Name: Smith Street

Thanks for any help


*







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 03-Nov-2005, 11:34 AM
Dennis's Avatar Dennis
Guest
 
Posts: n/a
   
   
RE: Update Query

How consistent is your data ?
Does every address field start with a street number and then a space to the
street name ?
Is the number and name in the same field every time ?
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6489
If it is not consistent every time, provide a couple of examples where there
is not a number and a street name.

"Roger Bell" wrote:

> Is there any way I can design an Update query or other query type to transfer
> street numbers which form part af an address field: EG: 21 Smith Street to a
> new field called Street Number and then Delete just the Street number from
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6489
> the existing address field.
>
> New fields would appear as: Street Number : 21; Street Name: Smith Street
>
> Thanks for any help
>

Reply With Quote
  #3 (permalink)  
Old 03-Nov-2005, 11:35 AM
John Vinson's Avatar John Vinson
Guest
 
Posts: n/a
   
   
Re: Update Query

On Wed, 2 Nov 2005 00:00:04 -0800, "Roger Bell"
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6489
wrote:

>Is there any way I can design an Update query or other query type to transfer
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6489
>street numbers which form part af an address field: EG: 21 Smith Street to a
>new field called Street Number and then Delete just the Street number from
>the existing address field.
>
>New fields would appear as: Street Number : 21; Street Name: Smith Street
>
>Thanks for any help


An answer... and a warning.

You can do this with an Update query by adding *two* new fields to
your table - StreetNumber and StreetName. Update StreetNumber to

Left([Address], InStr([Address], " ") - 1)

and StreetName to

Mid([Address], InStr([Address], " ") + 1)

The warning: I've seen addresses like

312 1/2 Hickory Lane => Street becomes "1/2 Hickory Lane"
225 A Maple St. => Street becomes "A Maple Street"
Ballacraine => Generates an error

John W. Vinson[MVP]
Reply With Quote
  #4 (permalink)  
Old 03-Nov-2005, 11:35 AM
Roger Bell's Avatar Roger Bell
Guest
 
Posts: n/a
   
   
RE: Update Query

  Donate Today!  
Thank you Dennis,
Yes, in the main, the address field does start with a street number and a
space to the street name. On the very odd occasion the street number is
missing and just shows the street name EG:Lot 14 Smith Street, however, the
street number field is currently blank in all cases.

Any further advice would be appreciated, as I inherited the data base this
way and would like to split the address as described above.

"Dennis" wrote:

> How consistent is your data ?
> Does every address field start with a street number and then a space to the
> street name ?
> Is the number and name in the same field every time ?
> If it is not consistent every time, provide a couple of examples where there
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6489
> is not a number and a street name.
>
> "Roger Bell" wrote:
>
> > Is there any way I can design an Update query or other query type to transfer
> > street numbers which form part af an address field: EG: 21 Smith Street to a
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6489
> > new field called Street Number and then Delete just the Street number from
> > the existing address field.
> >
> > New fields would appear as: Street Number : 21; Street Name: Smith Street
> >
> > Thanks for any help
> >

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
Is Science a Religion?
Today 07:47 AM
18 Replies, 2,085 Views
UNITED SIKHS AID Team...
Today 03:19 AM
0 Replies, 34 Views
Woolwich Killing: The...
Today 03:05 AM
26 Replies, 292 Views
Abu Nusaybah, 'Friend'...
Today 02:33 AM
0 Replies, 48 Views
Stockholm riots throw...
Today 02:14 AM
10 Replies, 108 Views
How does Sikhi help you...
Today 02:04 AM
48 Replies, 1,227 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Today 01:52 AM
186 Replies, 4,659 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 01:41 AM
322 Replies, 7,738 Views
Paneer: what I have...
Yesterday 22:29 PM
8 Replies, 85 Views
How Many Sikhs Have...
Yesterday 21:55 PM
698 Replies, 51,746 Views
Transgenderism ... Right...
By Kaylee
Yesterday 17:55 PM
31 Replies, 1,385 Views
Rochester Gurdwara...
Yesterday 10:55 AM
2 Replies, 88 Views
US Congress panel passes...
Yesterday 04:22 AM
0 Replies, 52 Views
Harmeet Kaur Took the...
Yesterday 03:40 AM
0 Replies, 72 Views
Panjabi Alphabet Resource
24-May-2013 23:15 PM
12 Replies, 6,566 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 09:06 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.87121 seconds with 32 queries
0