R
rml
I'm using the following with a click command and it works fine. How can I
make it work when I scroll through the records on my form? current, dirty,
etc...
What would be the proper way?
Thanks.
Dim sPartNo As String
Dim sPDFName As String
Const conDrawingFolder As String = "\\server\drawings\"
sPartNo = Me![New2] & vbNullString
If Len(sPartNo) = 0 Then
Image379.Visible = False
Else
sPDFName = conDrawingFolder & sPartNo & ".pdf"
If Len(Dir(sPDFName)) = 0 Then
Image379.Visible = False
Else
Image379.Visible = True
End If
End Sub
make it work when I scroll through the records on my form? current, dirty,
etc...
What would be the proper way?
Thanks.
Dim sPartNo As String
Dim sPDFName As String
Const conDrawingFolder As String = "\\server\drawings\"
sPartNo = Me![New2] & vbNullString
If Len(sPartNo) = 0 Then
Image379.Visible = False
Else
sPDFName = conDrawingFolder & sPartNo & ".pdf"
If Len(Dir(sPDFName)) = 0 Then
Image379.Visible = False
Else
Image379.Visible = True
End If
End Sub