
Signature
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
Thanks for your help and the useful info on your website.
> On my system, OLE Automation:
> C:\Windows\system32\stdole2.tlb
[quoted text clipped - 5 lines]
> > install
> > the reference.
Stephen, although Access now accepts 'SavePicture' after referencing as you
suggested, I am getting an error message - 'Compile error, Expected: = '
My line of code is - SavePicture(obj,"C\SL11-52")
Ade - 19 Jul 2007 15:54 GMT
Please Ignore I put brackets where there should be none.
> Stephen, although Access now accepts 'SavePicture' after referencing as you
> suggested, I am getting an error message - 'Compile error, Expected: = '
> My line of code is - SavePicture(obj,"C\SL11-52")
Douglas J. Steele - 19 Jul 2007 15:59 GMT
Sounds as though SavePicture was defined as a function.
To use a function without worrying about what it returns, use either
Call SavePicture(obj,"C\SL11-52")
or
SavePicture obj, "C\SL11-52"

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
> Stephen, although Access now accepts 'SavePicture' after referencing as
> you
> suggested, I am getting an error message - 'Compile error, Expected: = '
> My line of code is - SavePicture(obj,"C\SL11-52")