S
StargateFanFromWork
Every db I've made up till now in FMP has had few pix so I've just stored
them in the db itself. Now FMP frowns on this as much as A2K you
understand! <grin> But there were so few pictures, it didn't hurt.
The current A2K db I'm creating will have potentially a picture for each
record so it will be necessary this time around to just reference each. I
have a problem with absolute paths, however. When one decides to re-locate
a db, the pictures would no longer work if absolutes are used. Can we use
relative ones in A2K even when choosing the picture? I found an example db
that does this while explaining the procedure and after pressing the button
and choosing the graphic, the picture appears in a large box, while a
rectangular box underneath displays the complete path. Here are the
instructions from that example db:
"
It is usually preferable NOT to store OLE objects like pictures in the table
itself. It causes massive database bloat. The usual solution is to store
the pictures as files on the hard drive and store the file name in the
table. This sample demonstrates how to use the OpenSaveFile API to find the
picture file you want loaded into the database.
By default, it starts looking in the same directory as where the application
resides. If you want to change that, change this line:
pathname = CurrentProject.Path
to the path you want:
pathname = "C:\My Documents"
"
If I have a folder on the desktop called, say, "Movie Database" that has an
A2K file called "My Movie Database.mdb" and a folder called "images" for the
pictures, can A2K be made to just reference only the images folder along
with the graphics so that behind the scenes we'd just get something like
this: "images\graphic01.jpg" instead of this: "c:\desktop\Movie
Database\images\graphic01.jpg" which wouldn't work once we moved the mdg
files and images to, say, somewhere my D drive?
Thanks so much. D
them in the db itself. Now FMP frowns on this as much as A2K you
understand! <grin> But there were so few pictures, it didn't hurt.
The current A2K db I'm creating will have potentially a picture for each
record so it will be necessary this time around to just reference each. I
have a problem with absolute paths, however. When one decides to re-locate
a db, the pictures would no longer work if absolutes are used. Can we use
relative ones in A2K even when choosing the picture? I found an example db
that does this while explaining the procedure and after pressing the button
and choosing the graphic, the picture appears in a large box, while a
rectangular box underneath displays the complete path. Here are the
instructions from that example db:
"
It is usually preferable NOT to store OLE objects like pictures in the table
itself. It causes massive database bloat. The usual solution is to store
the pictures as files on the hard drive and store the file name in the
table. This sample demonstrates how to use the OpenSaveFile API to find the
picture file you want loaded into the database.
By default, it starts looking in the same directory as where the application
resides. If you want to change that, change this line:
pathname = CurrentProject.Path
to the path you want:
pathname = "C:\My Documents"
"
If I have a folder on the desktop called, say, "Movie Database" that has an
A2K file called "My Movie Database.mdb" and a folder called "images" for the
pictures, can A2K be made to just reference only the images folder along
with the graphics so that behind the scenes we'd just get something like
this: "images\graphic01.jpg" instead of this: "c:\desktop\Movie
Database\images\graphic01.jpg" which wouldn't work once we moved the mdg
files and images to, say, somewhere my D drive?
Thanks so much. D