Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saving and Reading picture

Status
Not open for further replies.

joseprez

Vendor
Sep 7, 2002
19
0
0
PA
with DAO, I want to save and read pictures.

I use this

CommonDialog1.Filter = "Bitmap (*.bmp)|*.bmp|Jpeg (*.jpg)|*.jpg|"
CommonDialog1.Action = 1
Image1.Picture = LoadPicture(CommonDialog1.FileName)

<< this work great >>

.......

<< but, when run this >>

MyDS.AddNew
MyDS!YourPic = Image1.Picture
MyDS.Update

this send me an error '3421', please teach me how.

 
Hi,
First try to replace Image1.picture by Image1.image, I'm not sure it will work but you can try.

If it didn't work, here is what I do when I want to save a picture:
Once I have my picture in my picture box, i do that don't forget to refresh if needed):
SavePicture Picture1.Image, App.path & "/" & filename & ".bmp"

i think it's easier.

i hope it will help

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top