Spell Check

  • Thread starter Thread starter Double A
  • Start date Start date
D

Double A

Is it possible to spell check any text entered into a form to be sure it will
print out correctly on the report? The field type it is entered into is text
or memo.

Thanks.
 
Double A said:
Is it possible to spell check any text entered into a form to be sure it
will
print out correctly on the report? The field type it is entered into is
text
or memo.

Try this:

Public Function Spell()
' Arvin Meyer 9/17/1998
' Adapted from code by Terry Wickenden
Dim ctlSpell As Control
Dim frm As Form
Set frm = Screen.ActiveForm
DoCmd.SetWarnings False
' Enumerate Controls collection.
For Each ctlSpell In frm.Controls
If TypeOf ctlSpell Is TextBox Then
If Len(ctlSpell) > 0 Then
With ctlSpell
.SetFocus
.SelStart = 0
.SelLength = Len(ctlSpell)
End With
DoCmd.RunCommand acCmdSpelling
End If
End If
Next
DoCmd.SetWarnings True
End Function
 
Where exactly would I put this code? For a particular field or code it to
the whole form? Where in the properties window would this go? Sorry, code
is not a strength for me.

Thanks.
 
OK. I am not familiar with "Standard Module" or where I would go to create
one. Can I get directions for this in the help menu?

Thanks.
 
I created the module as you suggested and it worked great when I added a
command button to one of my forms. My main form, however, has a subform
imbedded in it that is a datasheet view. When I add a commend button to this
subform in design view, it is not visible when the form runs. Is it possible
to add a command button to a datasheet view of a form?

Thanks.
 
Double A said:
I created the module as you suggested and it worked great when I added a
command button to one of my forms. My main form, however, has a subform
imbedded in it that is a datasheet view. When I add a commend button to
this
subform in design view, it is not visible when the form runs. Is it
possible
to add a command button to a datasheet view of a form?

Not to a datasheet view, but you can use a continuous form and add a button
to the row. You can make a continuous form look like a datasheet (but why
would you want to?)
 
I created a continuous form as you requested and added the spelling button to
the end of the row. When I click it, it checks the spelling of my main form
but will not pick up any errors in the subform record. Actually no matter
where I put the button, it will run through the main form fields but will not
search the subform.

Is there something I might need to add to the code to tell it to check all
associated forms.

Thanks.
 
Thank you so much for your help with this matter. Unfortunately I am not
very familiar with modules. I was able to create the standard module and
have used it in a few of the forms where I have data entry. For this
subform, I have a few questions.

You speak about putting it in a module in the subform. Can you help me with
how to do this? I assume you open the form and put it somewhere in
properties but I do not know where.

Also, if I keep the original standard module in place and use the =Spell()
code for "on click" in other forms, will the code in the module in the
subform interfere?

Thanks again for you assistance. I think I am almost there.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Spell check - round two 2
spell checker gone wild! 1
spell checker 10
Spell check in Access Memo 6
spell check 1
Spell check on access with out message box 3
Spell Checker 2
Test for Field Type 5

Back
Top