Notices


Reply
 
LinkBack Thread Tools Display Modes

Old 03-01-2007, 11:01 AM   #1 (permalink)
ET - outta this world!

Elaine Tucker's Avatar

Join Date: May 2006
Location: Dallas, Texas
Posts: 689
Rep Power: 3 Elaine Tucker is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Financial Edge (FE)
- Education Edge (EE)

Parse text in access

I have a memo field that has variations of:

Note - Addr1, ID 8903, by Elaine Tucker

The end result needs to be

Addr1 by Elaine Tucker

what expression do I use to extract so I can get the text like I want?

I started with Left([field], 6) and that results in "Note - "

I want to parse out at each space, so that way I can allow for variations of the original text.
I'd be happy with:
Field 1: "Note -"
Field 2: "Addr1"
Field 3: "ID 8903"
Field 4: by
Field 5: Elaine Tucker

How do I do that?

Thanks,
Elaine
__________________
Elaine Tucker
Stewardship Coordinator
St. Mark's School of Texas
USA
www.smtexas.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 03-01-2007, 11:50 AM   #2 (permalink)
Crystal Reports Guru

DrewAllen's Avatar

Join Date: May 2006
Location: Philadelphia, PA
Posts: 1,158
Rep Power: 4 DrewAllen is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Information Edge (TIE)
- API/VBA

If you need to do this in Access, you're probably better off writing a User-Defined Function in VBA for Access. There are just too many variables to write a simple formula to produce the results that you want. It's much easier to do this in VB, because you can do loops to handle situations like

"Note-" vs. "Note -" vs. "Ntoe -"

or

"Drew Allen" vs. "D. Allen" vs. "J. Drew Allen"

If you're not tied to MS Access, it's actually very easy to do this in Excel. Just use the "Data >Text to Columns" and specify that "Space" is one of the delimiters. Then you have the joy of making sure that all of the similar items are in the same columns, so that you can write your formulas to produce the results you actually want.

Drew
__________________
J. Drew Allen
Children's Hospital of Philadelphia

Crystal Reports and SQL Server Consultant

It is better to live your destiny imperfectly than to live an imitation of somebody else's life with perfection.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 03-01-2007, 12:30 PM   #3 (permalink)
ET - outta this world!

Elaine Tucker's Avatar

Join Date: May 2006
Location: Dallas, Texas
Posts: 689
Rep Power: 3 Elaine Tucker is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Financial Edge (FE)
- Education Edge (EE)

Quote:
Originally Posted by DrewAllen View Post
If you need to do this in Access, you're probably better off writing a User-Defined Function in VBA for Access. There are just too many variables to write a simple formula to produce the results that you want. It's much easier to do this in VB, because you can do loops to handle situations like

"Note-" vs. "Note -" vs. "Ntoe -"

or

"Drew Allen" vs. "D. Allen" vs. "J. Drew Allen"

If you're not tied to MS Access, it's actually very easy to do this in Excel. Just use the "Data >Text to Columns" and specify that "Space" is one of the delimiters. Then you have the joy of making sure that all of the similar items are in the same columns, so that you can write your formulas to produce the results you actually want.

Drew
Drew,

Have I told you lately that YOU ROCK!!!!! OMG - the excell is so much easier.... I automatically go to access but your solution is EASY.... (I'm feeling a little duh! at the moment) LOL

We are in the beta testing phase of a bridge between RE and our web server.... I had been correcting this field one by one, until it dawned on me it would be faster to let it come in as is and then export/reimport.


Thanks a MILLION
__________________
Elaine Tucker
Stewardship Coordinator
St. Mark's School of Texas
USA
www.smtexas.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 03-01-2007, 12:36 PM   #4 (permalink)
my feet hurt.

Melissa Siobhan's Avatar

Join Date: May 2006
Location: Connecticut
Posts: 1,455
Rep Power: 4 Melissa Siobhan is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)

In excel you can also use the MID function to get a certain number of characters from the middle of a field. You would have to concatenate it with a RIGHT function but that's not too hard. I've done it before with good success.
__________________
Melissa S. Graves

Director of Development Services
The Village for Families and Children
www.villageforchildren.org



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 03-01-2007, 03:54 PM   #5 (permalink)
defygravity

Matthew's Avatar

Join Date: May 2006
Location: New York NY
Posts: 319
Rep Power: 3 Matthew is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Financial Edge (FE)
- NetCommunity (BBNC)
- Blackbaud Analytics/Researcher's Edge (BBA/TRE)
- API/VBA

Quote:
Originally Posted by Elaine Tucker View Post
We are in the beta testing phase of a bridge between RE and our web server....
Share!
__________________
things haven't been the same since that house fell on my sister.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 03-01-2007, 05:06 PM   #6 (permalink)
ET - outta this world!

Elaine Tucker's Avatar

Join Date: May 2006
Location: Dallas, Texas
Posts: 689
Rep Power: 3 Elaine Tucker is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Financial Edge (FE)
- Education Edge (EE)

Quote:
Originally Posted by Matthew View Post
Share!

We're beta testing with a product from infosnap - School Data in a snap. Our web provider is WhippleHill Please wait...

This one of the the "surprises" I had after I came on board - at first I was extremely skeptical, but after almost 1 year we've made some serious progress!

Previous to trying this out we were doing dual entry in both sytems '




Now we've cut our DE time by at LEAST 75%!!!!!


Alot of my time is still wrapped up in this project but it's the data mgmt side:
1. - making sure that the fields are mapping/updating correctly
2. documenting problems & offering possible solutions
3. requesting site specific things that our org needs.

1.
2.
3....

1
2.
3.

(you know the wonderful software cycle!...)

Best Regards,
Elaine
__________________
Elaine Tucker
Stewardship Coordinator
St. Mark's School of Texas
USA
www.smtexas.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 03-06-2007, 01:53 PM   #7 (permalink)
Play nice! ;-)

cseebald's Avatar

Join Date: May 2006
Location: western New York
Posts: 395
Rep Power: 3 cseebald is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)

Quote:
Originally Posted by Melissa Siobhan View Post
In excel you can also use the MID function to get a certain number of characters from the middle of a field. You would have to concatenate it with a RIGHT function but that's not too hard. I've done it before with good success.
I just wanted to mention that these same concatenation functions can also be used in Access....

-
__________________
Catherine Seebald

cseebald@gmail.com
----------------------------
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 03-08-2007, 01:52 PM   #8 (permalink)
ET - outta this world!

Elaine Tucker's Avatar

Join Date: May 2006
Location: Dallas, Texas
Posts: 689
Rep Power: 3 Elaine Tucker is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Financial Edge (FE)
- Education Edge (EE)

The MID function would not work in this case because all of the text is in varying lengths, there was no uniformity to it, so breaking it up by the spaces worked best.
__________________
Elaine Tucker
Stewardship Coordinator
St. Mark's School of Texas
USA
www.smtexas.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
extract, text


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Loans - Loans - Mobile Phones - Internet Marketing
All times are GMT -6. The time now is 02:12 PM.

Miscellaneous


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Integrated by BBpixel Team 2008 :: jvbPlugin R1012.364.1

SEO by vBSEO 3.2.0 Copyright 2008 Blackbaud User SocietyAd Management by RedTyger
Inactive Reminders By Icora Web Design

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64