Image error 94

  • Thread starter Thread starter David
  • Start date Start date
D

David

I have images appearing on reports.
The code i use is
Dim strPath As String

strPath = DLookup("[logotest]", "My Company
Information")
Me!imgPicture.Picture = strPath

WHEN I REMOVE THE STRING TO AN IMAGE, I RECIEVE THE ERROR
(EMPTY STRING) HOW DO I STOP THE ERROR APPEARING ON AN
EMPTY STRING????
 
Since your table name has spaces in it, you need to use square brackets
around it:

strPath = DLookup("[logotest]", "[My Company Information]")
 
Back
Top