Defining selected text from a memo box

  • Thread starter Thread starter Antoine
  • Start date Start date
A

Antoine

Hi all,
I'd like to know how I can retrieve the value of a selected word (cursor
highlight) in a memo box. In other words, how can I filter my records
according to one/several words highlighted in a field.

Thx
Antoine
 
Antoine said:
I'd like to know how I can retrieve the value of a selected word (cursor
highlight) in a memo box. In other words, how can I filter my records
according to one/several words highlighted in a field.


Please be more specific, "one/several words highlighted in a
field" just isn't enough to write code against.

One possible interpretation might lead to code like:

strFilter = "[somefield] Like ""*" _
& Me.memobox.SelText & "*"""
Me.Filter = strFilter
Me.FilterOn = True

But, I don't know how you intend to maintain the highlight
in the memo's text box and trigger execution of the code.
 
Back
Top