Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept Multiple Parameters on Notification Hyperlinks #8

Open
US-Ali opened this issue Aug 22, 2018 · 3 comments
Open

Accept Multiple Parameters on Notification Hyperlinks #8

US-Ali opened this issue Aug 22, 2018 · 3 comments

Comments

@US-Ali
Copy link

US-Ali commented Aug 22, 2018

Now that the hyperlink on Toast and Dialog Box notifications can now be used to open forms and run user defined functions within Access, can this functionality be expanded from accepting only one parameter like this: <a href="ExecuteMe('ThisIsAStringParameter')">Execute me</a> to accepting multiple parameters (taking into considerations their data type) like any of the following:

  1. <a href="ExecuteMe('ThisIsAStringParameter', 'ThisAnIntegerParameter','etcParameter')">Execute me</a>
  2. <a href="ExecuteMe('frm', 'ProjectID', 'TaskID')">Execute me</a>
  3. <a href="ShowHelpNote('1, 1')">help</a> Functions like this can be used to call a record with recordID =1 and sub record with record ID = 1 too.
@krishKM
Copy link
Owner

krishKM commented Aug 22, 2018

This is already possible!?

@US-Ali
Copy link
Author

US-Ali commented Aug 22, 2018

I played with it and it was able to accept more than one parameters. However, I noticed that it only works for Public Functions and not Public Subs. So for anyone trying to use this, you must change your Public Subs to Functions.

This will work:

Public Function OpenSettings(Parameter1 As String, Parameter2 As Integer, Parameter3 As Double) 
   'your codes
End Function

This will not work:

Public Sub OpenSettings (Parameter1 As String, Parameter2 As Integer, Parameter3 As Double)
   'your codes
End Sub

@krishKM
Copy link
Owner

krishKM commented Aug 22, 2018

Interesting. I'll check this out later tomorrow. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants