【发布时间】:2014-07-13 10:54:55
【问题描述】:
我有这个 VBA 功能:当我退出一个字段时,它会自动启动拼写检查器。但是我有英语字段和法语字段,所以我正在寻找一种方法来为每个字段设置字典语言,以便 Access 知道要使用哪个字典/语法检查器。
例如,您将如何在此代码中包含法语?
Private Sub Field_Exit(Cancel As Integer)
Dim strSpell
strSpell = Field
If IsNull(Len(strSpell)) Or Len(strSpell) = 0 Then
Exit Sub
End If
With Field
.SetFocus
.SelStart = 0
.SelLength = Len(strSpell)
End With
DoCmd.SetWarnings False
DoCmd.RunCommand acCmdSpelling
DoCmd.SetWarnings True
End Sub
【问题讨论】:
标签: vba ms-access ms-access-2013 spell-checking