By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,835 Members | 1,391 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,835 IT Pros & Developers. It's quick & easy.

How to spell check one field, in one record

P: n/a
I've got the following code to work, but the problem is that it is
check all fields on every record. Is there a way to make this work on
one particular field AND only the current record?
Dim strSpell
If IsNull(Len(strSpell)) Or Len(strSpell) = 0 Then
Exit Sub
End If
.SelStart = 0
.SelLength = Len(strSpell)
End With
DoCmd.SetWarnings False
DoCmd.RunCommand acCmdSpelling
DoCmd.SetWarnings True

Many thanks
Jul 1 '08 #1
Share this Question
Share on Google+
1 Reply

P: n/a
Resolve by using the following adaptation of the above code:
If Len(Me.YOURFIELDNAME & vbNullString) 0 Then
..SelStart = 0
..SelLength = Len(.Text)
End With
DoCmd.RunCommand acCmdSpelling
end if
Jul 1 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.