andrewf10
Registered User.
- Local time
- Today, 03:16
- Joined
- Mar 2, 2003
- Messages
- 114
I have 15 fields beginning with the word Comment. (i.e. comment, comment1, comment2 etc)
What Im trying to do is create a spellcheck command button that will only check these fields and only on the current record.
I've managed to find this piece of code to do the actual check:
With Me.FIELDNAME
.SetFocus
.SelStart = 0
.SelLength = Len(Me.FIELDNAME)
End With
DoCmd.RunCommand acCmdSpelling
Question is, how do I get this piece of code to loop through any field beginning with the word 'comment' and check their spelling?!
Any help would be much appreciated
What Im trying to do is create a spellcheck command button that will only check these fields and only on the current record.
I've managed to find this piece of code to do the actual check:
With Me.FIELDNAME
.SetFocus
.SelStart = 0
.SelLength = Len(Me.FIELDNAME)
End With
DoCmd.RunCommand acCmdSpelling
Question is, how do I get this piece of code to loop through any field beginning with the word 'comment' and check their spelling?!
Any help would be much appreciated
Last edited: