Need help with the following code. I keep getting error message. New to Code.
Option Compare Database
Function GetPicture()
With CodeContextObject
If Dir(.[ImageFile]) <> Empty Then
.[ImageControl].Visible = True
.[ImageControl].Picture = .[ImageFile]
Else
.[ImageControl].Visible = False
End If
End With
End Function
Thank you....
Option Compare Database
Function GetPicture()
With CodeContextObject
If Dir(.[ImageFile]) <> Empty Then
.[ImageControl].Visible = True
.[ImageControl].Picture = .[ImageFile]
Else
.[ImageControl].Visible = False
End If
End With
End Function
Thank you....