"LisaB" <lbagley(ReTHis)@mayatech.com> wrote in message
news:(E-Mail Removed)
> Thank You,
>
> What if I would like to check more than the one memo field on the
> form, for example if the form has 3 text fields and 2 memo fields to
> be spell checked, how do I limit the spell checker code to only the
> current record?
>
> one of the forms I am using this function on, pulls more than
> one record from the database. This function goes through all the
> records even if I highlight the text I want checked.
The code I posted *shouldn't* check more than the field it selects -- it
doesn't for me, at least. You did use the amended version, yes? If
it's going through all the fields, something I hadn't anticipated is
going on, because it works in my quick test.
To check all fields on the current record, this seems to work:
RunCommand acCmdSelectRecord
RunCommand acCmdSpelling
If you want to check multiple fields but not all of them, I think you're
going to have to do them one at a time: programmatically select a
field, RunCommand acCmdSpelling, programmatically select another field,
RunCommand acCmdSpelling ... and so on.
--
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)