473,461 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Code that parses a string and puts individual words into a seperate table

I am looking for a VBA routine with a table (tblSentences) and one
long field (field1) is the source

tblSentences
Field1
Did you know that a wild blueberry lies dormant for more than a year
between
growing seasons? That's why we specially select our choice
ingredients.

And another table (tblWords) with one field (FieldWord)

tblWords
FieldWord

The VBA routine goes through each row of tblSentences and puts each
word into tblWords. So tblWords populated looks like:

FieldWord
Did
you
know
that
a
wild
blueberry
..
..
..
Thanks in advance for any help with this!

RBolling

Aug 25 '07 #1
2 2153
I don't know what you are trying to accomplish, if anything practical... it
appears from your table structure, every word from every sentence maybe in
tblWords, which would most likely make it useless for any practical purpose.
Thus, I doubt anyone is going to already have, or be interested in preparing
for you, code to do what you describe.

Assuming this is for a homework assignment (and it seems suspiciously as
though it might be), you first should check Help (in recent versions of
Access) for the "Split" command, which will split the sentence into
"whatever text" is separated by the delimiter you specify. A space would
work nicely as the delimiter. In VBA, you'll find that DAO code is somewhat
easier to learn than ADO.

Larry Linson
Microsoft Access MVP

"robboll" <ro*****@hotmail.comwrote in message
news:11**********************@q3g2000prf.googlegro ups.com...
>I am looking for a VBA routine with a table (tblSentences) and one
long field (field1) is the source

tblSentences
Field1
Did you know that a wild blueberry lies dormant for more than a year
between
growing seasons? That's why we specially select our choice
ingredients.

And another table (tblWords) with one field (FieldWord)

tblWords
FieldWord

The VBA routine goes through each row of tblSentences and puts each
word into tblWords. So tblWords populated looks like:

FieldWord
Did
you
know
that
a
wild
blueberry
.
.
.
Thanks in advance for any help with this!

RBolling

Aug 25 '07 #2
On Aug 24, 8:08 pm, "Larry Linson" <boun...@localhost.notwrote:
I don't know what you are trying to accomplish, if anything practical... it
appears from your table structure, every word from every sentence maybe in
tblWords, which would most likely make it useless for any practical purpose.
Thus, I doubt anyone is going to already have, or be interested in preparing
for you, code to do what you describe.

Assuming this is for a homework assignment (and it seems suspiciously as
though it might be), you first should check Help (in recent versions of
Access) for the "Split" command, which will split the sentence into
"whatever text" is separated by the delimiter you specify. A space would
work nicely as the delimiter. In VBA, you'll find that DAO code is somewhat
easier to learn than ADO.

Larry Linson
Microsoft Access MVP

"robboll" <robb...@hotmail.comwrote in message

news:11**********************@q3g2000prf.googlegro ups.com...
I am looking for a VBA routine with a table (tblSentences) and one
long field (field1) is the source
tblSentences
Field1
Did you know that a wild blueberry lies dormant for more than a year
between
growing seasons? That's why we specially select our choice
ingredients.
And another table (tblWords) with one field (FieldWord)
tblWords
FieldWord
The VBA routine goes through each row of tblSentences and puts each
word into tblWords. So tblWords populated looks like:
FieldWord
Did
you
know
that
a
wild
blueberry
.
.
.
Thanks in advance for any help with this!
RBolling- Hide quoted text -

- Show quoted text -
Nope -- not a student. Just trying to become more versitile with
VBA. I actually found something here:
http://www.mvps.org/access/strings/str0003.htm

Believe it or not there are a lot of uses for this process!

Thanks!

RBolling

Aug 25 '07 #3

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

Similar topics

14
by: Akbar | last post by:
Hey there, Big-time curiosity issue here... Here's the test code (it's not that long)... it's to display a large number of image links with captions, ideally pulled in from an external file...
9
by: PaulThomas | last post by:
I want to "look" through a comma delimited String and "take it apart" by finding the comma's and then put each "set of characters" into seperate strings - - - maybe an array, maybe seperate cells...
5
by: derrick | last post by:
I used to program text RPG's in C back in high school, but I was very crude at it and only learned what I needed to get the job done. I am now about to graduate college with a degree in English and...
22
by: ineedyourluvin1 | last post by:
Hello all! I've been looking for a way to strip characters from strings such as a comma. This would be great for using a comma as a delimiter. I show you what I have right now. ...
1
by: Daveyk0 | last post by:
Hello there, I have a front end database that I have recently made very many changes to to allow off-line use. I keep copies of the databases on my hard drive and link to them rather than the...
239
by: Eigenvector | last post by:
My question is more generic, but it involves what I consider ANSI standard C and portability. I happen to be a system admin for multiple platforms and as such a lot of the applications that my...
13
by: coosa | last post by:
Dear all, Using the conio implementation i wanted to create a dynamic string, whereby its size would be determined after each keyboard hit; in other words, i don't want to ask the user to...
14
by: Vlad Dogaru | last post by:
Hello, I am trying to learn C, especially pointers. The following code attempts to count the appearences of each word in a text file, but fails invariably with Segmentation Fault. Please help me...
25
by: Jon Slaughter | last post by:
I have some code that loads up some php/html files and does a few things to them and ultimately returns an html file with some php code in it. I then pass that file onto the user by using echo. Of...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.