R
RD
I have a new one. My gf always manages to send me a problem that
bends my head.
I have a table (imported from a HUGE text file) with a field for phone
numbers, another for Carriers, another for Groups, another for Company
Name and a couple other fields (descriptions or something).
The phone numbers can be sequential or they may not be. In the middle
of a sequence of numbers the Carrier may change or the Company may
change or the Group may change or any combination may occur. Or not.
What we need is a way to iterate through the numbers and write records
to a new table where non-sequential numbers are pretty much written as
they are but sequential numbers get parsed into a range in one cell.
She needs to do this to make it easier to move whole blocks of numbers
between Carriers or Groups or Companies.
A parsed record would look kind of like this:
PhnNum Grp Carr Cmpy
2013955700-2013955799 covadnj gobeam Focal Comm
With the last fields written as well.
I'm messing with a "little" sample table of over 11,000 lines. Now, I
can loop with the best of them and I've parsed out plenty of fields
and text files and such in the past but it's always been in the other
direction. Y'know, pulling info *out* of ranges and bad
concatenations not putting them *into* a range.
So, I don't feel like re-inventing the wheel if somebody has a routine
that does something similar I can adapt. How about it? Has anyone
had to do anything like this?
Thanks,
RD
bends my head.

I have a table (imported from a HUGE text file) with a field for phone
numbers, another for Carriers, another for Groups, another for Company
Name and a couple other fields (descriptions or something).
The phone numbers can be sequential or they may not be. In the middle
of a sequence of numbers the Carrier may change or the Company may
change or the Group may change or any combination may occur. Or not.
What we need is a way to iterate through the numbers and write records
to a new table where non-sequential numbers are pretty much written as
they are but sequential numbers get parsed into a range in one cell.
She needs to do this to make it easier to move whole blocks of numbers
between Carriers or Groups or Companies.
A parsed record would look kind of like this:
PhnNum Grp Carr Cmpy
2013955700-2013955799 covadnj gobeam Focal Comm
With the last fields written as well.
I'm messing with a "little" sample table of over 11,000 lines. Now, I
can loop with the best of them and I've parsed out plenty of fields
and text files and such in the past but it's always been in the other
direction. Y'know, pulling info *out* of ranges and bad
concatenations not putting them *into* a range.
So, I don't feel like re-inventing the wheel if somebody has a routine
that does something similar I can adapt. How about it? Has anyone
had to do anything like this?
Thanks,
RD