P
Pete Davis
I have to store some pictures in the database. Storing them in the
filesystem is unacceptable for various reasons.
I have done very little access programming, but I'm trying to help a client
get this set up.
What I need s a simple way to add a new image to the database. I have a
field for placing the filename and then a button that I want them to press
to import the data, and that's where I'm stuck. How, in access, do I read in
the file and place the data into the appropriate field?
My table is called Picture and has the following:
PictureID: Autonumber
PropertyDetailsID: Number (reference to the record the picture is
associated with)
PictureNumber: Number (used to number the pictures associated with the
property, beginning at 1.
PictureData : OleObject (The actual picture data).
So, after pressing the button, how do I move the data from the file to the
database?
The second question is, is there a way to display the FileOpen dialog from
within access instead of requiring the user to type in the filename?
Thanks.
Pete
filesystem is unacceptable for various reasons.
I have done very little access programming, but I'm trying to help a client
get this set up.
What I need s a simple way to add a new image to the database. I have a
field for placing the filename and then a button that I want them to press
to import the data, and that's where I'm stuck. How, in access, do I read in
the file and place the data into the appropriate field?
My table is called Picture and has the following:
PictureID: Autonumber
PropertyDetailsID: Number (reference to the record the picture is
associated with)
PictureNumber: Number (used to number the pictures associated with the
property, beginning at 1.
PictureData : OleObject (The actual picture data).
So, after pressing the button, how do I move the data from the file to the
database?
The second question is, is there a way to display the FileOpen dialog from
within access instead of requiring the user to type in the filename?
Thanks.
Pete