?
Solved

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

Posted on 2007-03-20
2
Medium Priority
?
2,435 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 35

Accepted Solution

by:
Raynard7 earned 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

718 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