Solved

VBA Microsoft Access Function to find/replace for a whole table

Posted on 2007-03-20
2
2,383 Views
Last Modified: 2013-11-27
Hi,

I'm trying to create a function in VBA to replace all occurences of "<br>" in a table with a carriage return.

Could anyone help me with this?

Thanks in advance for any help!
0
Comment
Question by:siono2
2 Comments
 
LVL 35

Accepted Solution

by:
Raynard7 earned 500 total points
ID: 18760171
why not just use an sql statement

update tableName set tableName.fieldName = replace(tableName.fieldName, "<br>", vbcrlf)
0
 

Author Comment

by:siono2
ID: 18760237
because I'm not bright enough to think of such solutions! Thanks for the help!
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now