R
ridders
I use a standard spell checker routine on various forms to check selected
controls only. This is based on standard code : DoCmd.RunCommand
acCmdSpelling in a subroutine SpellCheckControl
=========================================
Public Sub SpellCheckControl(ctlSpell As Control)
DoCmd.SetWarnings False
DoCmd.RunCommand acCmdSpelling
DoCmd.SetWarnings True
End Sub
=========================================
For example to spellcheck all records in controls ‘Report’ & ‘Target’ ONLY,
I have:
=========================================
Private Sub btnSpellCheck_Click()
DoCmd.GoToRecord , , acFirst
SpellCheckControl Me.Report
SpellCheckControl Me.Target
End Sub
================================
So for example, I deliberately do not check the Forename field as this isn’t
needed and would waste a lot of time
However if the user enters the forename in the selected Report or Target
controls, it will be spell checked which is a nuisance.
Ideally, I want to ignore the forename (if correctly spelt for that record)
when spellchecking the Report & Target controls. Can this be done?
The other possible approach would be to add the forenames to the custom
dictionary automatically without showing the dialog box. I’d prefer not to do
this as it will then allow through incorrect spellings for the individual
record concerned
Any ideas please?
controls only. This is based on standard code : DoCmd.RunCommand
acCmdSpelling in a subroutine SpellCheckControl
=========================================
Public Sub SpellCheckControl(ctlSpell As Control)
DoCmd.SetWarnings False
DoCmd.RunCommand acCmdSpelling
DoCmd.SetWarnings True
End Sub
=========================================
For example to spellcheck all records in controls ‘Report’ & ‘Target’ ONLY,
I have:
=========================================
Private Sub btnSpellCheck_Click()
DoCmd.GoToRecord , , acFirst
SpellCheckControl Me.Report
SpellCheckControl Me.Target
End Sub
================================
So for example, I deliberately do not check the Forename field as this isn’t
needed and would waste a lot of time
However if the user enters the forename in the selected Report or Target
controls, it will be spell checked which is a nuisance.
Ideally, I want to ignore the forename (if correctly spelt for that record)
when spellchecking the Report & Target controls. Can this be done?
The other possible approach would be to add the forenames to the custom
dictionary automatically without showing the dialog box. I’d prefer not to do
this as it will then allow through incorrect spellings for the individual
record concerned
Any ideas please?