OLE Object (Bitmap Image) Type?

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
 
S

Stephen Lebans

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top