isladogs
Access MVP / VIP
- Local time
- Today, 23:08
- Joined
- Jan 14, 2017
- Messages
- 19,496
As I said, I edited your database in #9.
The only edit I did was
Changed this line:
pdfBrowser.Height = 8000
to:
pdfBrowser.Height = wBrowser.Height
Your database stopped working. Give it a try.
I'll follow your instructions in the morning
Thanks again
I had tested before I posted.
Just to be clear, I was referring to changes to your original form from post #1.
Or using the modified version of your form from post #9, change the code to:
Code:
Private Sub Detail_DblClick(Cancel As Integer)
Dim pth As String
Static Indx As Integer
Select Case Indx
Case 0
Indx = 1
Case 1
Indx = 2
Case 2
Indx = 3
Case 3
Indx = 1
End Select
pth = "https://msaccess/" & CurrentProject.Path & "\" & Indx & ".pdf"
With pdfBrowser
.ControlSource = pth
.Height = wBrowser.Height
.SetFocus
End With
End Sub
Private Sub Form_Open(Cancel As Integer)
pdfBrowser.Top = wBrowser.Top
pdfBrowser.Height = 0
End Sub
I hope you don't see or respond to this until the morning (Japan time)