Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Spell Checking. 1

Status
Not open for further replies.

Eightball3

Programmer
Joined
Nov 23, 2002
Messages
138
Location
US
Is there a way to do Spell Checking of a form, but not in certain fields. I actually want only one field checked. Thanks.

 
* Put a Command button on the form that you want to spell check, then place this code on the onclick event. The F7 key is the spell checker through access.
You can put the spell check picture on the command button, by using the format tab, then changing the picture to the spell check default pic.


Dim SpellCk As String
SpellCk = "{F7}"
SendKeys (TEST)
** Hope this helps.
 
Sorry you only wanted it for one control, not the whole form. I wrote the wrong code anyway.

dim spellchk as string
spellchk ="{F7}"
Sendkeys(spellchk)

Not what you want. Sorry...

 
Ok try putting that code on the command button, then disable the all the controls me.text0.enabled = false.
Then on the Exit command of the textbox that you wanted to spell check re-enable the controls. me.text0.enabled = true.
Later.
 
Thanks compucop,
I'll give that a try.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top