Image control, Access 2003...

Dan1000

Board Regular
Joined
Nov 4, 2006
Messages
210
Hi folks

Can anyone advise on image control in Acess 2003.

I have a database with about 200 entries each of which I would like to link to a unique image. Images are in a separate folder.

I would like to be able to pan and zoom in and out of the images from within Access.

Any help would be much appreciated


Regards
 
The link between the parent and sub forms is established using code?

Why not use the relevant properties of the forms to do that?
 
Upvote 0

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
No. The link between the parent and subform is with a Child/Master link/relationship as mentioned.

There is code in place to automate the image links. The relationship alone does not do this.

There is also code which automates text values in the subform. I wonder if more code will disrupt this process. I guess there is a way around this. Maybe use code directly with the image frame or use queries?


Regards
 
Upvote 0
So what's the code to automate the image links?
 
Upvote 0
Sorry for another question, but how are you using that function to load the image in the subform?

I'm sure the function works but perhaps you aren't using it quite right.
 
Upvote 0
Trust me - it does work. The problem is associated with the record source conflict between the parent form and subform, not the code.

The code and setup work fine on a parental form setup (without any subforms).

...the problem I have is associated with accessing the parental reference from the subform.

Perhaps it is not possible to have two sets of links between a parental form and subform?


Regards
 
Upvote 0
That's actually what I'm trying to find out really.

Where is the field with the image name/path and how are you trying to refer to it so that you can use the function?
 
Upvote 0
What are you trying to find out - exactly?

I may be able to help...but can you help me? or...am I on a wild goose chase?
 
Upvote 0
I just set up a form/subform where the subform had an image.

I used one line of code in the subform to load the images
Code:
Option Compare Database
Option Explicit
Private Sub Form_Current()
Dim strPath As String
 
    strPath ="C:\Images\"
 
    Me.Image9.Picture = strPath & Me.ImageName.Value
End Sub
ImageName was a field on the subform and the 2 forms were linked by the ID of the main form.

So when I moved between records the data in the subform changed, so the image changed.

Also, the ID from the subform was the same as the ID of the main form.

This was a very simple setup but worked fine.:)

If you used the function how did you pass the image control and the path/name of the image to be loaded?

If you have linked the form and subform you don't need to get the value from the subform.

Perhaps I'm missing something, and if I am I apologise.:)
 
Upvote 0
Dan

Just reread your post.

I'm trying to help but need more information.

What I set up was to see if I could replicate your problem.
 
Upvote 0

Forum statistics

Threads
1,224,517
Messages
6,179,242
Members
452,898
Latest member
Capolavoro009

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top