473,387 Members | 1,493 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,387 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 2615

"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 counselor field which are comboboxes. If I set...
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 editing. There is Edit button. When clicked, it starts a...
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 overhead and have set-up a form for my client to...
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 Record Selector , it will go to Rc2 and , it will go...
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 database. They are stored as files and the database...
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 relatively small. There are about 1,200 rows in the...
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 through the child table fields to find parent...
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 event to do this? The lblMonth should contain the...
3
by: Simon van Beek | last post by:
Dear reader, How to change the RecordSource for a subReport. For forms the syntaxes is:
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.