I don't suppose you have an example of downloading a file using wininet?
My VB skills are ok, but i've barely had any experience with APIs. I've been looking round the internet for a good example but havent found any yet.
Any help would be much appreciated.
I tried turning my virus scanner off completely but the message was the same.
I tried in Access just for test purposes as thats one of the places where i'd be opening the history files from, however, I tried the code version of retrieving the info and got:
Invalid Picture
Just for info, in...
I've been advised to post the complete problem to a sub problem I was having concerning OLE objects.
My overall goal is to have a database with an internal email function which must support rich text (bold etc) and save the email in a table.
I thought i'd have a go at storing a file as an OLE...
Oh well, back to the drawing board!
Thanks for your help CCLINT.
Incidentally, my overall goal is to have a database with an internal email function which must support rich text (bold etc) and saving the email in a table.
I thought i'd have a go at storing a file, but i'm also having trouble...
I get the following error:
A problem occured while Microsoft Access was communicating with the OLE server
Close the OLE server and restart it outside of Microsoft Access. Then try the original operation again in Microsoft Access.
I made a VB app and used the code below, it does put something...
!email.CreateEmbed "C:\test.rtf", "package"
should have been
!email.CreateEmbed "C:\untitled.msg", "package"
I changed what I was using from a word document to an email.
Hi,
I have a table in SQL with an image data type field which can contain files.
I can manually add records to this in Access (field appears as OLE Object data type).
Im trying to add records to this field using VB/VBA.
Im attempting to add a record using the .addnew method. I've tried...
Were you manually putting the image in or using code?
I am trying to insert a file to an OLE object field in a table using code and im not having much luck finding out how to do it.
Just thought i'd check to see if you did this manually or not.
Regards,
Phil
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.