J
Jody
I have created a Run Application button that loads IE. I am a VERY NEWBIE to
programming and would like to know how I can program the button to load a URL
listed in one of the form fields. The URL will be diffrent for each record.
The particular field name is 'adminURL'.
I would be appreciative if someone could insert what I need so I can see how
the syntax should be. I would assume there would be some variable that
contains the field name inserted after the IE executable? Does the field
data type need to be a 'hyperlink' or will 'text' be sufficient? I prefer to
use 'text' if at all possible as it is much easier to edit than 'hyperlink'
datatypes.
Option Compare Database
------------------------------------------------------------------
Private Sub IE_Command28_Click()
On Error GoTo Err_IE_Command28_Click
Dim stAppName As String
stAppName = "C:\Program Files\Internet Explorer\IEXPLORE.EXE"
Call Shell(stAppName, 1)
Exit_IE_Command28_Click:
Exit Sub
Err_IE_Command28_Click:
MsgBox Err.Description
Resume Exit_IE_Command28_Click
End Sub
programming and would like to know how I can program the button to load a URL
listed in one of the form fields. The URL will be diffrent for each record.
The particular field name is 'adminURL'.
I would be appreciative if someone could insert what I need so I can see how
the syntax should be. I would assume there would be some variable that
contains the field name inserted after the IE executable? Does the field
data type need to be a 'hyperlink' or will 'text' be sufficient? I prefer to
use 'text' if at all possible as it is much easier to edit than 'hyperlink'
datatypes.
Option Compare Database
------------------------------------------------------------------
Private Sub IE_Command28_Click()
On Error GoTo Err_IE_Command28_Click
Dim stAppName As String
stAppName = "C:\Program Files\Internet Explorer\IEXPLORE.EXE"
Call Shell(stAppName, 1)
Exit_IE_Command28_Click:
Exit Sub
Err_IE_Command28_Click:
MsgBox Err.Description
Resume Exit_IE_Command28_Click
End Sub