Code:
Private Sub getImage(ByVal lookup As String, activity As Image)
lookup = Replace(item, " ", "")
activity .Picture = CurrentProject.Path & "\images\activities\" & lookup & ".bmp"
activity .ControlTipText = "Wewt"
End Sub
I can't get this to work and I'm beyond fuming right now. I've tried ObjectFrame, Object, TextBox, etc and it doesn't work.
I'm passing a string from a Lookup column and the picture box to place the picture in.
Example:
Lookup Column = "Eat Food"
Picture Box = activity
Code:
getImage (column), (activity)
WTH is going on?!