Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using the vba replace on a field in a table

Status
Not open for further replies.

spycake

Technical User
Jun 7, 2002
2
US
i have a reoccurring string in a field that needs to be removed. i'd like to use the vba replace function, but i don't know how to apply it to a field in a table. i need advice on how to call the function properly, or modify the function to work on the field set as control. here's what i do in my macro:

1) open table TABLE1
2) goto control FIELD1
3) RunCode Replace("[TABLE1].[FIELD1]", "String to remove", "", 1)

and, of course, i'm using the replace function defined in the faq. thanks -- jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top