From Windows Help file:
Using Character Map
You can use Character Map to copy and paste special characters into your
documents, such as the trademark symbol, special mathematical characters, or
a character from the character set of another language.
Open Character Map.
Notes
a.. To open Character Map, click Start, point to Programs, point to
Accessories, point to System Tools, and then click Character Map.
b.. For information about using Character Map, click Help in Character
Map.
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com www.pcdatasheet.com
<ed************@boiukfs.co.uk> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Hi
I have made a little progress on this problem. I am using the SelStart
property of me.text0 to get the cursor position and then SelText to
paste my special character in. I have posted my code below.
Unfortunately there are still a couple of problems.
As I didn't know which event would work best for capturing SelStart I
have shown all my workings below. The problem with the method below is
if I am typing it text0 and then hit the command button it pastes the
special character at the beginning of the text box but if I manually
move focus to another text box and then place my curson back into the
form press the command button it pastes the character into the correct
position.
Does anyone know why this might happen and also which event would be
best to capture the SelStart - AfterUpdate, LostFocus or MouseUp?
TIA
Option Compare Database
Option Explicit
Dim intPosition As Integer
Private Sub Command2_Click()
Me.Text0.SetFocus
Me.Text3.Value = intPosition
Me.Text0.SelStart = intPosition
Me.Text0.SelText = "à"
End Sub
Private Sub Text0_AfterUpdate()
Me.Text3.Value = intPosition
End Sub
Private Sub Text0_LostFocus()
intPosition = Me.Text0.SelStart
End Sub
Private Sub Text0_MouseUp(Button As Integer, Shift As Integer, X As
Single, Y As Single)
intPosition = Me.Text0.SelStart
End Sub