Nightowl4933
Tryin' to do it right...
- Local time
- Today, 09:31
- Joined
- Apr 27, 2016
- Messages
- 151
Hello,
I would like to open a web-based application from my Access project, but I'm not sure how to 'translate' the javascript to an Event Procedure on a Command Button.
The java script is:
="javascript:void(window.open('http://application/home/redirect/?explorer=false&m=premises&c=other&a=edit&i=" & Fields!PREMID.Value & "','_blank'))"
...and works from another web-based application.
I've got this far, which will open the program but not append the 'variables':
strApplication = "http://application/home/redirect/?explorer=false&m=premises&c=other&edit=&i=" & strPremID & "','_blank"
Application.FollowHyperlink strApplication
'strPremID' is the value of a text box on the same form as the Command Button, and I figured this should replace the 'Fields!PREMID.Value' - but perhaps that's where I'm going wrong?
Thanks,
Pete
I would like to open a web-based application from my Access project, but I'm not sure how to 'translate' the javascript to an Event Procedure on a Command Button.
The java script is:
="javascript:void(window.open('http://application/home/redirect/?explorer=false&m=premises&c=other&a=edit&i=" & Fields!PREMID.Value & "','_blank'))"
...and works from another web-based application.
I've got this far, which will open the program but not append the 'variables':
strApplication = "http://application/home/redirect/?explorer=false&m=premises&c=other&edit=&i=" & strPremID & "','_blank"
Application.FollowHyperlink strApplication
'strPremID' is the value of a text box on the same form as the Command Button, and I figured this should replace the 'Fields!PREMID.Value' - but perhaps that's where I'm going wrong?
Thanks,
Pete