Here's something you can try. Attach the SQL table to the access database. Set the table as the record source for your form. Create an OLEDB object frame using the toolbox. Set its record source to the SQL BLOB field. I don't have any SQL blobs available to test it, but it bet it will work.
This works too, but takes up a lot of disk space. If you look at this article, it will show you how to write the BLOB out to a file.
On your form, use the toolbox to create an image frame whose source is the file created.
Ok, I just got it to work, smooth as silk. I used a bound object frame. I set the control source to the field name of a SQL BLOB server field. The type of the SQL Server field is Image. I plugged a Tom Tommorrow cartoon into it. Works great.
Here are the other properties:
Size mode clip
DisplayType Content
Verb 0
Update Options Automatic
Ole Tpe Allowed Either
I'm running SQL 2000. The first time I did it I just used the form wizard. Form is set to columner. Picked the image field from the lst box, popped right up. Can you display any text data in other fields in the record?
Glad you got it almost working.
IIRC correctly you don't need to register the dll, you just need to copy it to %windir%/system32/
It may be worth dropping an email to Stephan Lebans about his sample or posting on comp.databases.access where he "hangs out" and see if he can help with resizing.
Cheers
Ben
----------------------------------------------
Ben O'Hara
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.