'Can and then can't set focus on Control access 2016 Form VBA script shown below
Can and then can't set focus on a Control access 2016 Form
Me.MyText.SetFocus 'This **DOES NOT** generate error code 2110 (can't move the focus to the control MyText)
Me.ResultText.SetFocus
'first copy the textbox original content
OriginalString = Me.ResultText
'now set the content of the textbox to the string we want in the clipboard
Me.ResultText = "SysCmd acSysCmdSetStatus, ('This Is Status bar set XXX')"
Me.MyText.SetFocus 'This **DOES** generate error code 2110 HERE (can't move the focus to the control MyText)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
