473,466 Members | 1,417 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

text editing help

Hi,
have a table 'article' with a field 'description' with about 100000
entries

many entries at the end have the text 'zur syn..' or 'zur ana'.. or
'fuer ...'

I would like to run code to remove the last part of the text if it
contains the "key" word.

lot of nice examples in the forum, but I am lost. could someone give me
a hand please.

thanks

Sep 12 '06 #1
2 1105

stevenrec wrote:
Hi,
have a table 'article' with a field 'description' with about 100000
entries

many entries at the end have the text 'zur syn..' or 'zur ana'.. or
'fuer ...'

I would like to run code to remove the last part of the text if it
contains the "key" word.

lot of nice examples in the forum, but I am lost. could someone give me
a hand please.

thanks
dim db as dao.database
dim rs as dao.recordset

set db=currentdb
set rs=wsdb.openrecordset("article",DB_OPEN_DYNASET)

rs.movefirst
do until rs.eof

if right(rs!description,7)="zur ana" or ...... = "zur syn" then

rs!description=left(rs!description,len(rs!descript ion)-7)
rs.update
else
if right(rs!description,4)="fuer" then

rs!description=left(rs!description,len(rs!descript ion)-4)
rs.update
endif
endif

rs.movenext
loop

set rs=nothing
set db=nothing

Sep 12 '06 #2
PS : replace 'wsdb' on top with just 'db'.

Sep 12 '06 #3

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

Similar topics

0
by: Bob Kaku | last post by:
I'm trying to create a text editing and updating capability to help someone who wants to maintain content on a web page without having to know any HTML or use a web authoring tool and FTP'ng the...
2
by: NewBob | last post by:
Since Access automatically highlights all of the text in a text control (I use it to hold data from a memo field) when the control is activated, I've added the following code to put the cursor at...
6
by: DM | last post by:
Is there any way to left align the text in a server control button?
31
by: John Salerno | last post by:
Ok, I know it's been asked a million times, but I have a more specific question so hopefully this won't be just the same old post. I've tried a few different editors, and I really like UltraEdit,...
4
by: Finn Stampe Mikkelsen | last post by:
Hi Is there any way to make the textbox property show html, like a textarea on a webpage would?? I have a webapplication that saves an textarea complete with html tags and everything... ...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
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?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.