I changed it to this:
Code:
Else
CaseStyle = DLookup("Case Style", "[Case Style]", "CaseID = " & Me!CaseID)
^^^^^^ ^^^^^^^ ^^^^
1 2 3
1 Name of the Field from which the text will come...
2 Name of the Table from the which the record comes...
3 Number of the Case for this record...
Me!ItemImage.Picture = ("\\Mac\JunkboxDB\Images\") & CaseStyle & (".jpg")
End If
But now I get
run-time error '2001':
"You canceled the previous operation"
( i think this was because I had 'CaseStyle' as the name of the field when it was actually 'Case Style')
Now I get run-time error '3075'
"Syntax error (missing operator) in query expression 'Case Style'
Trying to get the CaseID=>Case Style into CaseStyle (as text) so I can create a text string that will be the link in Image Control.
Is there a way to do this simply?
Thank you,
Kevin