OLE Object (Bitmap Image) Type?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I am having trouble returning a bitmap image from a field stored in my
database. The field's Tpye is a OLE Object and it holds a Bitmap Image, Im
trying to display the image on a Form after it has been retrieved using the
Dlookup funtion I've tried to assign a variable (rtImage)with various object
types with no joy. I keep getting a Tpye mismatch error message when I try to
link the field.

for instance:

Dim rtImage As Long

rtImage = DLookup("Product_Name", "[Main _ products]", "Product_Image =" &
Me.OpenArgs)

can Anyone help?

Thanks John
 
You have to use an OLE Frame control to display an OLE object.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Back
Top