edit data

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello

I have a Form and on it have Field name: Infinitiv

I wonder if it possible by Infinitiv Option Event to make commando that
can insert " | " when I click on mouse betwen a word character ?

Example:

Field Infinitiv: abbedissa

And click on mouse cursor between character and then
direct be as this result: abbediss | a


Other ex.

Field Infinitiv: affärsman

Click on mouse cursor the result be as this: affärs | man


Thank you
 
Jemsson, I can't imagine why you would want to do this, but this should do
it for you:
Put it in the onClick event of your textbox.

me.txtBox = left$(me.txtBox,me.txtBox.selstart) & " | " &
mid$(me.txtBox,me.txtBox.selstart)

the selstart property gives you the location of the beginning of the
selection, or the location of the cursor if there is no selection.

hope this helps
-John
 
Hello Mr John

Thank you very muchfor the code. It will help me too much.
I already wrote data dictionary Swedish / arabic and in that time I couldn't
much about MS Access.
Well Now when I split the Infinitiv word with " | " so I already have other
field that will combine before " | " and make new word wich will be imperfect
etc.

I asked this question, because I became tierd of type " | " on word that
need split.

I Wish You Merry Chrestimas & Happy New Year

Jesus Bless
 
Back
Top