Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

OLE Object

0 views
Skip to first unread message

Nick Batchelor

unread,
Dec 19, 2000, 4:40:39 AM12/19/00
to
Does any one know what is wrong with this? I keep getting an Object required
message.

Function Picture()
On Error GoTo Picture_Err

DoCmd.OpenTable "Sale", acNormal, acEdit
DoCmd.GoToControl "MainPicture"
' Specify type of object.
MainPicture.OLETypeAllowed = acOLELinked
' Specify source file.
SourceDoc = "C:\1000i.jpg"
' Create linked object.
Action = acOLECreateLink

Picture_Exit:
Exit Function

Picture_Err:
MsgBox Error$
Resume Picture_Exit

End Function

Any help would be appreciated.

Thanks

Nick


Alex Dybenko

unread,
Dec 19, 2000, 6:37:03 AM12/19/00
to
Nick,
better save path to pic file in some memo field and to show it use image
control and assing its picture property to this path

Alex

"Nick Batchelor" <nick.ba...@softhome.net> wrote in message
news:u7HKO9ZaAHA.2256@tkmsftngp05...

expo...@hotmail.com

unread,
Dec 31, 2000, 1:16:10 PM12/31/00
to nick.ba...@softhome.net
Our DBPix bound image control can help you use images in your database
applications and overcomes many of the efficiency and functionality
limitations of other approaches. Coding is simple, you may not even
need to write a single line.
If this is of interest you can dowload the control, documentation and
samples from www.ammara.com


In article <u7HKO9ZaAHA.2256@tkmsftngp05>,


Sent via Deja.com
http://www.deja.com/

0 new messages