473,385 Members | 1,587 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

delimeter counting: seperating the street from the adresnumber

how can I count the number of blank-seperated word groups in a single field.
The format I receive is aaa (aaa aaa )n(nnn).
aaa can be any number of words, any length. The n(nnn) is not fixed length
either.
The only thing I can think of is a mumps solution: count the number of
space-delemitered words, the last "word" is the streetnumber, the rest is
the street name.

glad for help.
2B Project services
Th. van den Berg RI
Herautstraat 61
8043 AE Zwolle
Nederland
tel : 038-4605619
fax : 038-4605618
www.2b.nl
KvK : 38023654
OB nr : nl66245588b01
Nov 12 '05 #1
8 1717
On Mon, 29 Dec 2003 01:14:46 +0100, "Thomas van den Berg"
<va********@2b.nl> wrote:

You could use the Split function, and then check the UBound of the
resulting array.

-Tom.

how can I count the number of blank-seperated word groups in a single field.
The format I receive is aaa (aaa aaa )n(nnn).
aaa can be any number of words, any length. The n(nnn) is not fixed length
either.
The only thing I can think of is a mumps solution: count the number of
space-delemitered words, the last "word" is the streetnumber, the rest is
the street name.

glad for help.
2B Project services
Th. van den Berg RI
Herautstraat 61
8043 AE Zwolle
Nederland
tel : 038-4605619
fax : 038-4605618
www.2b.nl
KvK : 38023654
OB nr : nl66245588b01


Nov 12 '05 #2
Ik heb windows XP Pro, en office XP Pro. Het commando Split zie ik niet.
Kunt u een andere functie naam geven.

hoe ziet het commando er uit
t1:split("straat 15")
t2:???

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #3
On 29 Dec 2003 01:19:44 GMT, Th, van den Berg <ma**@2b.nl> wrote:

Put a bit more effort in it. Split is found in the Help file.
-Tom.

Ik heb windows XP Pro, en office XP Pro. Het commando Split zie ik niet.
Kunt u een andere functie naam geven.

hoe ziet het commando er uit
t1:split("straat 15")
t2:???

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Nov 12 '05 #4
My excuses Tom, but I am in this game some time/ I do not ask quicly/
I use the dutch version, i looked through all the help items and I found
"splitsen" which is the dutch equivalent of "split". But it mentions
splitting databases not fields.
Ubound I found.
Thanks for corresponding so quickly.

Th. van den Berg
Herautstraat 61
NL-8043 AE

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #5
On 29 Dec 2003 08:39:43 GMT, Th, van den Berg <ma**@2b.nl> wrote:

Sorry, my bad. Split was introduced with Access 2000, if I'm not
mistaken. You must be on Access 97 or before. In that case, you could
write your own Split function, or find a similar solution using the
InStr function to find spaces. To actually pick the parts apart, you
can use combinations of Left$, Mid$, Right$.

-Tom.

My excuses Tom, but I am in this game some time/ I do not ask quicly/
I use the dutch version, i looked through all the help items and I found
"splitsen" which is the dutch equivalent of "split". But it mentions
splitting databases not fields.
Ubound I found.
Thanks for corresponding so quickly.

Th. van den Berg
Herautstraat 61
NL-8043 AE

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Nov 12 '05 #6
"Tom van Stiphout" wrote
Sorry, my bad. Split was introduced
with Access 2000, if I'm not mistaken.
You must be on Access 97 or before.
In that case, you could write your own
Split function, or find a similar solution
using the InStr function to find spaces.
To actually pick the parts apart, you
can use combinations of Left$, Mid$,
Right$.


And, searching at http://groups.google.com might very well lead to a Split
function that can just be copied and used. I remember that Joe Foster had
one for Access 2.0 that he called "detokenize". I don't think he has a
website now with code on it, but there might be a copy in the newsgroup
archive. I'm sure there will be some others, too.

Larry Linson
Microsoft Access MVP

Nov 12 '05 #7
"Larry Linson" <bo*****@localhost.not> wrote in message
news:Bd****************@nwrddc01.gnilink.net...
"Tom van Stiphout" wrote
> Sorry, my bad. Split was introduced
> with Access 2000, if I'm not mistaken.
> You must be on Access 97 or before.
> In that case, you could write your own
> Split function, or find a similar solution
> using the InStr function to find spaces.
> To actually pick the parts apart, you
> can use combinations of Left$, Mid$,
> Right$.


And, searching at http://groups.google.com might very well lead to a Split
function that can just be copied and used. I remember that Joe Foster had
one for Access 2.0 that he called "detokenize". I don't think he has a
website now with code on it, but there might be a copy in the newsgroup
archive. I'm sure there will be some others, too.


If you can't find Joe's, http://support.microsoft.com/?id=188007 contains
sample functions (although they're poorly written)

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(No private e-mails, please)

Nov 12 '05 #8
rkc

"Larry Linson" <bo*****@localhost.not> wrote in message
news:Bd****************@nwrddc01.gnilink.net...
And, searching at http://groups.google.com might very well lead to a Split
function that can just be copied and used. I remember that Joe Foster had
one for Access 2.0 that he called "detokenize". I don't think he has a
website now with code on it, but there might be a copy in the newsgroup
archive. I'm sure there will be some others, too.


Everybody and their Uncle Bob has posted a Split function, including
one by Ken Getz.
Nov 12 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Sugapablo | last post by:
I have a database table that contains street addresses in the following format: 123 Any St. 456 Some Rd. 7789 That Blvd. etc. I.e. Street number, street name, standard abbriviation of road...
21
by: tomasio | last post by:
Dear Group, The Site under the following link (http://tomasio.laudatio.com/temp/schiepek/index.html) displays as I want it to in IE 6 (under Win XP) but does not render correctly in Firefox...
1
by: Al Dykes | last post by:
Does anyone have an idea on how to find ZIP+4 codes? Thanks -- a d y k e s @ p a n i x . c o m Don't blame me. I voted for Gore.
2
by: wolftor | last post by:
Does anyone know how to create a query that will separate the street number from the street name? Eg. current address field = 14 Main Street, unit 4 but I want to get: streetno = 14...
7
by: Raphi | last post by:
Hi, I'm trying to clean up a large database in Access. I have one field for address, which needs to be broken up into Street Number, Street Name, and Street Label (St., Road, etc.) The...
10
by: Claud Balls | last post by:
I am splitting large files based on a text delimeter, but I don't want the delimeter left out of the string. For example if I had a string "NAME: Bill TOWN: Helena NAME: Frank TOWN: Helena" I...
1
by: Voronkov Konstantin | last post by:
Hello all! std::ostringstream stream; stream << 8080; std::string str = stream.str(); // str == "8 080" The code shown above in mine big program result the str variable value to
4
by: Robert Fitzpatrick | last post by:
Thanks to some help here on the list, I've been able to get addresses sorting pretty well, but now I have a issue with same addresses on different streets not grouping the streets. This is what I'm...
4
by: HowHow | last post by:
Using Access 2000. I need to group the address by suburb then by street name in my report. Two major problems here: 1. Unit number has the word "Unit" before number 2. Semi detach house has "a"...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.