OLE Object Type?
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
|