I have a memo field in my database with a bunch of text in them. I would like to search and replace the text; however, Access crashes every time I try to accomplish this. So I set up a module to copy the code out of the field in question, paste it into MS Word, do the search and replace there, and then... well, that's where I'm stuck. Once I've cut and placed text on the clipboard, how do I paste it back into a field? Here's the final bit of code:
OK, so now that the text in Word has been selected and cut, how do I paste it into the field 'CodeTemplate'? I would assume it's some sort of edit to the recordset, perhaps:
What do I set '!CodeTemplate' equal to?
Thanks in advance,
Onwards,
Q-
Code:
Set rsTemplate = db.OpenRecordset(sqlstring...)
With rsTemplate
'bunch of code...
'bunch of code...
With .Selection
.WholeStory
.Cut
End With
OK, so now that the text in Word has been selected and cut, how do I paste it into the field 'CodeTemplate'? I would assume it's some sort of edit to the recordset, perhaps:
Code:
.Edit
!CodeTemplate = ???
.Update
What do I set '!CodeTemplate' equal to?
Thanks in advance,
Onwards,
Q-