473,395 Members | 1,488 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Linking to image does not "stick"

Ken
I have a win 2000 database of autographs and scanned photos. They are
in the SAME directory. In the table, my "ImagePath" text field shows
JUST the image name (i.e. "blank.jpg"). I have an image field that
links to the ImagePath field. But it does not display in the form.

I go in and delete the image field and add it back in and link it to
the "blank.jpg" file (its a dummy jpg that says "Not Avail"). Then I
make sure it is linked and not embedded. I close design mode and go
open the form and it works perfectly. I save the form and the database
and exit. I come back in to the database and the stupid form just
displays the "blank.jpg" even though as I scroll through the records
on the form, the correct file name changes in the ImagePath text field
as each record changes.

WHAT GIVES????? I am going NUTS!!!

Ken
Nov 12 '05 #1
3 3938

"Ken" <ne***********@mail.com> wrote in message
news:9b**************************@posting.google.c om...
I have a win 2000 database of autographs and scanned photos. They are
in the SAME directory. In the table, my "ImagePath" text field shows
JUST the image name (i.e. "blank.jpg"). I have an image field that
links to the ImagePath field. But it does not display in the form.

I go in and delete the image field and add it back in and link it to
the "blank.jpg" file (its a dummy jpg that says "Not Avail"). Then I
make sure it is linked and not embedded. I close design mode and go
open the form and it works perfectly. I save the form and the database
and exit. I come back in to the database and the stupid form just
displays the "blank.jpg" even though as I scroll through the records
on the form, the correct file name changes in the ImagePath text field
as each record changes.

WHAT GIVES????? I am going NUTS!!!


That is unlikely. You probably gained that distinction when you took up
database development; in any case, that's what quite a number of people have
said about me. <G>

Alas, it is difficult for me to understand what you have... because there is
no "image field" in Access. Could it be that you are working with "OLE
fields" and "Bound OLE Frames", or something else?

Just FYI, for multiple reasons, I rarely ever store pictures as OLE Objects
for display in OLE Frames.

In any case, there are sample databases at http://accdevel.tripod.com
illustrating three approaches to handling images in Access. There's also an
article in the download discussing considerations in which approach to
choose.

Larry Linson
Microsoft Access MVP
Nov 12 '05 #2
Ken
Larry,
Thanks for replying. I put the following code in my imageframe code:

Private Sub Form_Current()
On Error Resume Next
MyPath = "E:\Programs\CFusionMX\wwwroot\Starsigners\h5zrig1 u\"
Me![ImageFrame].Picture = MyPath & Me![ImagePath]
End Sub

Private Sub ImagePath_AfterUpdate()
On Error Resume Next
MyPath = "E:\Programs\CFusionMX\wwwroot\Starsigners\h5zrig1 u\"
Me![ImageFrame].Picture = MyPath & Me![ImagePath]
End Sub

That let me keep just the file name in the text field. Do you see
anyhting wrong with the code? I am uploading the database to a web
page and that seems to work locally.

I am linking the files; the ImageFrame field is the image control.

Ken
"Larry Linson" <bo*****@localhost.not> wrote in message news:<Av*******************@nwrddc01.gnilink.net>. ..
"Ken" <ne***********@mail.com> wrote in message
news:9b**************************@posting.google.c om...
I have a win 2000 database of autographs and scanned photos. They are
in the SAME directory. In the table, my "ImagePath" text field shows
JUST the image name (i.e. "blank.jpg"). I have an image field that
links to the ImagePath field. But it does not display in the form.

I go in and delete the image field and add it back in and link it to
the "blank.jpg" file (its a dummy jpg that says "Not Avail"). Then I
make sure it is linked and not embedded. I close design mode and go
open the form and it works perfectly. I save the form and the database
and exit. I come back in to the database and the stupid form just
displays the "blank.jpg" even though as I scroll through the records
on the form, the correct file name changes in the ImagePath text field
as each record changes.

WHAT GIVES????? I am going NUTS!!!


That is unlikely. You probably gained that distinction when you took up
database development; in any case, that's what quite a number of people have
said about me. <G>

Alas, it is difficult for me to understand what you have... because there is
no "image field" in Access. Could it be that you are working with "OLE
fields" and "Bound OLE Frames", or something else?

Just FYI, for multiple reasons, I rarely ever store pictures as OLE Objects
for display in OLE Frames.

In any case, there are sample databases at http://accdevel.tripod.com
illustrating three approaches to handling images in Access. There's also an
article in the download discussing considerations in which approach to
choose.

Larry Linson
Microsoft Access MVP

Nov 12 '05 #3
You are "uploading the database to a web server"? Are these Access' Data
Access Pages? Otherwise, you can't run an Access application from a web
page.

You can upload the _tables and data_ and use them from classic .asp or
ASP.NET pages, from FrontPage 2002/2003 with the Database Interaction
Wizard, from Cold Fusion and other third party products, but you can't use
your Access Forms, Reports and code on the web (except within the
limitations of Data Access Pages).

Please clarify if I have misunderstood.

Larry Linson
Microsoft Access MVP

"Ken" <ne***********@mail.com> wrote in message
news:9b**************************@posting.google.c om...
Larry,
Thanks for replying. I put the following code in my imageframe code:

Private Sub Form_Current()
On Error Resume Next
MyPath = "E:\Programs\CFusionMX\wwwroot\Starsigners\h5zrig1 u\"
Me![ImageFrame].Picture = MyPath & Me![ImagePath]
End Sub

Private Sub ImagePath_AfterUpdate()
On Error Resume Next
MyPath = "E:\Programs\CFusionMX\wwwroot\Starsigners\h5zrig1 u\"
Me![ImageFrame].Picture = MyPath & Me![ImagePath]
End Sub

That let me keep just the file name in the text field. Do you see
anyhting wrong with the code? I am uploading the database to a web
page and that seems to work locally.

I am linking the files; the ImageFrame field is the image control.

Ken
"Larry Linson" <bo*****@localhost.not> wrote in message

news:<Av*******************@nwrddc01.gnilink.net>. ..
"Ken" <ne***********@mail.com> wrote in message
news:9b**************************@posting.google.c om...
I have a win 2000 database of autographs and scanned photos. They are
in the SAME directory. In the table, my "ImagePath" text field shows
JUST the image name (i.e. "blank.jpg"). I have an image field that
links to the ImagePath field. But it does not display in the form.

I go in and delete the image field and add it back in and link it to
the "blank.jpg" file (its a dummy jpg that says "Not Avail"). Then I
make sure it is linked and not embedded. I close design mode and go
open the form and it works perfectly. I save the form and the database
and exit. I come back in to the database and the stupid form just
displays the "blank.jpg" even though as I scroll through the records
on the form, the correct file name changes in the ImagePath text field
as each record changes.

WHAT GIVES????? I am going NUTS!!!


That is unlikely. You probably gained that distinction when you took up
database development; in any case, that's what quite a number of people have said about me. <G>

Alas, it is difficult for me to understand what you have... because there is no "image field" in Access. Could it be that you are working with "OLE
fields" and "Bound OLE Frames", or something else?

Just FYI, for multiple reasons, I rarely ever store pictures as OLE Objects for display in OLE Frames.

In any case, there are sample databases at http://accdevel.tripod.com
illustrating three approaches to handling images in Access. There's also an article in the download discussing considerations in which approach to
choose.

Larry Linson
Microsoft Access MVP

Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Bob | last post by:
I usually use some "pre-load" code in my pages to preload graphics that will be swapped. But, I'm thinking that rather than the long, repetitive, once, for each graphic hardcoded stuff like this: ...
4
by: Dan Jacobson | last post by:
Using <A name="x_y-z"></A>, I even get nervous about the _ and -. w3-recs/RECS/html4/struct/links.html seems to say all of ascii is cool and beyond. Anyway, just what is the safe range for...
43
by: Dimitri Debruyne | last post by:
Hi group I am in the process of developing a website in XHTML Strict and CSS. Is there a way to open a link in a new window without the use of frames or Javascript or something ? I didn't find a...
77
by: Jon Skeet [C# MVP] | last post by:
Please excuse the cross-post - I'm pretty sure I've had interest in the article on all the groups this is posted to. I've finally managed to finish my article on multi-threading - at least for...
15
by: Gérard Talbot | last post by:
Hello all, I'd like to know and understand the difference between, say, <img src="/ImageFilename.png" width="123" height="456" alt=""> and <img src="/ImageFilename.png" style="width:...
18
by: jrhoads23 | last post by:
Hello, I am trying to find a way to tell if an .NET windows forms Button (System.Windows.Forms.Button) is "depressed" (pushed down). For my application, I can not use a check box control set to...
2
by: Marty | last post by:
Hi, How do we make a form "stick" to another window (something like Winamp)? I'm using C# .NET 2003. Thank you very much. Marty
3
lwwhite
by: lwwhite | last post by:
Access 2003. I have a form (form view) with a subform (datasheet view). The form has a map_id field and each record on the subform also has a map_id field. I want the fields on the form and subform...
6
by: Uh Clem | last post by:
Is there a way to update form/control properties via VBA and have them still be there after the form is re-opened? When a textbox value is updated by the user, I need that value to be there next...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.