Share via

Declare Function statement

Anonymous
2024-08-08T22:49:53+00:00

Access 365. I have a module called Utilities with several functions I need. This statement will NOT compile. What is the issue???

Declare Function ShellExecute & Lib "shell64.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nshowcm As Long)

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-08-09T00:48:04+00:00

    Likely a typo. Does your actual code include the ampersand after 'ShellExecute'?

    Also, check out this post https://599cd.com/glossary/access/shellexecute/?key=

    Was this answer helpful?

    0 comments No comments