Hi
I am having a certain form field in MS word document . It's name is " ffld ". It is to display amount and should accept numbers only. If text is entered , it should give a message that only numbers are entered and the focus of the cursor should be set back to the field " ffld ".
I have written the code below, but the set focus is giving a problem
Could some one please correct my code
If Not IsNumeric(ffld.Result) Then
MsgBox "This Field Accepts Numeric Values only"
ffld.Select
With ffld
.Enabled = True
.Select
End With
Exit Sub
End if
Thanks