472,353 Members | 2,146 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Display images that change in the detail field of a subform

I am trying to create a subform that will display images related to the
parent form. The subform is a continuous form as there will be several
images that relate to the parent form.

I checked Access help and it gave me the following code, which I have
adapted for my database and it works well as a SINGLE FORM.

Option Compare Database

Private Sub Form_Current()
On Error Resume Next
Me![imgfootage].Picture = Me![image]
If Me![image] = "" Then Me![imgfootage].Picture =
"m:\macfiles\library\noimagefound.jpg"

End Sub

Private Sub Image_AfterUpdate()
On Error Resume Next
Me![imgfootage].Picture = Me![image]
End Sub

However, if I change the subform to CONTINUOUS, it will display the
same image on all of the records displayed in the form.

I tried changing the subform detail's Current and AfterUpdate
properties, but lo, no such properties exist for the detail.

Conventional wisdom seems to indicate that this cannot be done on a
subform in continuous form mode. I think there HAS to be a way. A
search of this group seems to bring me close to a solution, but they
don't seem to apply entirely to my situation and I am not good enough
(yet) to bridge the gap in my application.

Thanks for any help anyone can give.

vidiot

Nov 1 '06 #1
4 2491

"vidiot" <vi***************@yahoo.comschreef in bericht news:11*********************@e3g2000cwe.googlegrou ps.com...
Conventional wisdom seems to indicate that this cannot be done on a
subform in continuous form mode. I think there HAS to be a way. A
search of this group seems to bring me close to a solution, but they
don't seem to apply entirely to my situation and I am not good enough
(yet) to bridge the gap in my application.
Stick to the conventional wisdow ;-)
IME this can't be done in a continuous form ...
Also: The current event only fires for the current record in the continuous form...
So IF it were possible to display different images it still would NOT work this way.

Only in a report you can display different images for each record.

If the need is only for two or three of four records you *could* try to use more subforms (one for each record)
Then you *could* make the subform(s) visible depending on the number of records to display.
But I think that conventional wisdom also tells me that I would not even try to do this since it is a very limited 'solution'...

Create a button instead that will show the image (e.g. in a pop-up form) if one wants to see the picture related to the record.

Arno R
Nov 1 '06 #2
vidiot wrote:
I am trying to create a subform that will display images related to the
parent form. The subform is a continuous form as there will be several
images that relate to the parent form.
The approach I took when faced with this problem was to create a series of controls to
mimic a continuous form and then use code to populate the controls. I also created
navigation controls. The controls are unbound; the code handles everything.

Quite a bit of code but you have total control over everything.

--
'---------------
'John Mishefske
'---------------
Nov 2 '06 #3

Arno R wrote:
"vidiot" <vi***************@yahoo.comschreef in bericht news:11*********************@e3g2000cwe.googlegrou ps.com...
Conventional wisdom seems to indicate that this cannot be done on a
subform in continuous form mode. I think there HAS to be a way. A
search of this group seems to bring me close to a solution, but they
don't seem to apply entirely to my situation and I am not good enough
(yet) to bridge the gap in my application.

Stick to the conventional wisdow ;-)
IME this can't be done in a continuous form ...
Also: The current event only fires for the current record in the continuous form...
So IF it were possible to display different images it still would NOT work this way.

Only in a report you can display different images for each record.

If the need is only for two or three of four records you *could* try to use more subforms (one for each record)
Then you *could* make the subform(s) visible depending on the number of records to display.
But I think that conventional wisdom also tells me that I would not even try to do this since it is a very limited 'solution'...

Create a button instead that will show the image (e.g. in a pop-up form) if one wants to see the picture related to the record.

Arno R
Thanks! At least I know that in this case, conventional wisdom is
pretty much correct. But I will try the button approach. It sounds
like it has promise!

Thanks, Fred

Nov 2 '06 #4

John Mishefske wrote:
vidiot wrote:
I am trying to create a subform that will display images related to the
parent form. The subform is a continuous form as there will be several
images that relate to the parent form.

The approach I took when faced with this problem was to create a series of controls to
mimic a continuous form and then use code to populate the controls. I also created
navigation controls. The controls are unbound; the code handles everything.

Quite a bit of code but you have total control over everything.

--
'---------------
'John Mishefske
'---------------
It does sound complex, but it is also a complicated database that I am
putting together. I think between your advice and the previous post, I
will find the answer. I'll post something when I get a chance to try
it.

Thanks, Fred

Nov 2 '06 #5

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

Similar topics

6
by: Rey | last post by:
Howdy, all. Appreciate your help. Have a one to many relation between a client and visit table. In the visit subform, I have a visittype and...
2
by: Galina | last post by:
Hello I have an application in MS Access 2000. I have a form, which includes a subform. The subform is based on a table, but locked for any...
3
by: RAllsopp | last post by:
I have a client who would like to have several pictures associated with one system. I have read about storing only the pathname to save OLE...
17
by: perryche | last post by:
I have 5records, e.g. Rc1, Rc2, Rc3..., when user open up a form, I want it to open to a particular record (say Rc3) then when user chooses the...
12
by: Wadim Grasza | last post by:
I want to store and display (on a form or a report) multiple pictures per record in an access database. The pictures are not stored within the...
19
by: jimatqsi | last post by:
I'm using Access 2000 (and also 2003 with same result) in a Windows XP Professional environment on a peer-to-peer network. Files in this system are...
7
by: john | last post by:
In my form I have a master table and a details table linked 1xM. I can search through the whole parent table but I also like to be able to search...
4
by: Henrootje | last post by:
I have a REPORT with in it a subFORM Now I have this label (lblMonth) that I want to change. How should I do this? What would be the proper...
3
by: Simon van Beek | last post by:
Dear reader, How to change the RecordSource for a subReport. For forms the syntaxes is:
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...

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.