This coding looks for a drawing in one folder. If it can't find it there it produces an error which sends it to
err_drawing to look in the other folder. If it can't find it in the second folder it produces a Run-time '490' message box.
In place of the Run-time message box I would like it to display one that just says that it can't find the drawing.
Private Sub Drawing_DblClick(Cancel As Integer)
Dim strinput As String
Dim Drawing As String
On Error GoTo err_drawing
If IsNull(SupplyVoltage) Then GoTo exit_Drawing_DblClick
If [SupplyVoltage] = 36.5 Then
strinput = "F:\NR-Scanned-Drawings\Customer Connection CD\Overhead\33kV Customer-OH\" & Me("drawing") & ".tif"
End If
Application.FollowHyperlink strinput, , True
exit_Drawing_DblClick:
Exit Sub
err_drawing:
If [SupplyVoltage] = 36.5 Then
strinput = "F:\NR-Scanned-Drawings\Customer Connection CD\Underground\33kV Customer-UG\" & Me("drawing") & ".tif"
End If
Application.FollowHyperlink strinput, , True
End Sub
err_drawing to look in the other folder. If it can't find it in the second folder it produces a Run-time '490' message box.
In place of the Run-time message box I would like it to display one that just says that it can't find the drawing.
Private Sub Drawing_DblClick(Cancel As Integer)
Dim strinput As String
Dim Drawing As String
On Error GoTo err_drawing
If IsNull(SupplyVoltage) Then GoTo exit_Drawing_DblClick
If [SupplyVoltage] = 36.5 Then
strinput = "F:\NR-Scanned-Drawings\Customer Connection CD\Overhead\33kV Customer-OH\" & Me("drawing") & ".tif"
End If
Application.FollowHyperlink strinput, , True
exit_Drawing_DblClick:
Exit Sub
err_drawing:
If [SupplyVoltage] = 36.5 Then
strinput = "F:\NR-Scanned-Drawings\Customer Connection CD\Underground\33kV Customer-UG\" & Me("drawing") & ".tif"
End If
Application.FollowHyperlink strinput, , True
End Sub