So the below code is supposed to open an html file and pass some extra info to it which is then used by JavaScript to display the correct photos (pictures of cameras before or after 'drop test')
Using Firefox the page opens OK, but the extra info is not passed (I know it is in the correct variable as the debug.print shows the correct path, which has the desired effect when copy-pasted into firefox)
Any ideas?
thanks in advance,
Bogzla
Using Firefox the page opens OK, but the extra info is not passed (I know it is in the correct variable as the debug.print shows the correct path, which has the desired effect when copy-pasted into firefox)
Any ideas?
Code:
Private Sub cmdView_Photos_Click()
On Error GoTo Err_cmdView_Photos_Click
Dim strPathName As String
Dim strBeforeAfter As String
Dim strCamNum As String
Dim strExtraInfo As String
Select Case Forms!frmJigBuildEnterData!opgBefore_After
Case 1 '(before)
strBeforeAfter = "Pre_Drop"
Case 2 '(after)
strBeforeAfter = "Post_Drop"
End Select
strCamNum = Me.txtCamID.Value
strPathName = "file://///Major/camera/Smia85/Drop_Test_Photos/Jpegs/viewphotos.html"
strExtraInfo = "camera=" & strCamNum & "&beforeAfter=" & strBeforeAfter
Debug.Print strPathName & "?" & strExtraInfo
Application.FollowHyperlink strPathName, , , , strExtraInfo
Exit_cmdView_Photos_Click:
Exit Sub
Err_cmdView_Photos_Click:
MsgBox "Error # " & Err.Number & " - " & Err.Description
Resume Exit_cmdView_Photos_Click
End Sub
thanks in advance,
Bogzla