R
raveica
I'm trying to call the OpenHyperlinkDialog() defined below and I receive the
Error message:
Error 2046: The command or action 'insertHyperlink' isn't available now
The acCmdInsertHyperlink was selected interactively from the list constant
that specifies which built-in menu or toolbar command is to be run. How can i
make things working?
Call OpenHyperlinkDialog()
Public Function OpenHyperlinkDialog() As Boolean
On Error GoTo ErrorHandler_Error
DoCmd.RunCommand acCmdInsertHyperlink
OpenHyperlinkDialog = True
Exit_ErrorHandler:
Exit Function
ErrorHandler_Error:
Dim strSign As String
strSign = "()"
Call LogError(Err.Number, Err.Description,
"Form_subBudBasRent_OpenHyperlinkDialog" & strSign & "", , True)
Resume Exit_ErrorHandler
End Function
Error message:
Error 2046: The command or action 'insertHyperlink' isn't available now
The acCmdInsertHyperlink was selected interactively from the list constant
that specifies which built-in menu or toolbar command is to be run. How can i
make things working?
Call OpenHyperlinkDialog()
Public Function OpenHyperlinkDialog() As Boolean
On Error GoTo ErrorHandler_Error
DoCmd.RunCommand acCmdInsertHyperlink
OpenHyperlinkDialog = True
Exit_ErrorHandler:
Exit Function
ErrorHandler_Error:
Dim strSign As String
strSign = "()"
Call LogError(Err.Number, Err.Description,
"Form_subBudBasRent_OpenHyperlinkDialog" & strSign & "", , True)
Resume Exit_ErrorHandler
End Function