Continuous Form, multiple unbound pictures?

pat_nospam

Registered User.
Local time
Today, 12:33
Joined
Oct 14, 2003
Messages
151
Ok, I'm using the following code (which works fine on unbound pictures in single form view):

Code:
On Error GoTo err_Form_Current

    If Not Me!Picture = "" Or Not IsNull(Me!Picture) Then
        Me!txtPicture.Visible = True
        Me!txtPicture.Picture = "K:\staff\" & Me!Picture
    Else
        Me!txtPicture.Visible = False
    End If
        
exit_Form_Current:
    Exit Sub
    
err_Form_Current:
    MsgBox Err.Description
    Resume exit_Form_Current

But, for my continuous form, the first picture loaded populates all of the txtPicture fields, making it the same photo over and over again. Is there a method to make it define per form, so I get a different photo with each form break in the continous form?

Thanks in advance for any insight,

Pat
 
Can anyone offer a quick response to tell me if this is possible with unbound picture loading? Or, do I need to incorporate an alternate method?

Thanks in advance,

Pat
 
OnCurrent Event

You need to set the image in the OnCurrent Event

Brian
 
Time Issues

Just beware if the Form is very long and has a large number of images then the Form will have to get them all and this can take time especially as you seem to be using a Network path K:\

You could put in the header a button to display the images or not.
 
Brian,

Thanks for the quick response, the code is already set in the OnCurrent event of the form. Should I set it in the OnCurrent event for the unbound object?

The problem is, that since the form is in continous view, and shows for example 3 forms one after another with pictures, all the pictures are of the initial form. I would like to have 3 different pictures for the 3 continous view forms, corresponding to their matching path/stored bound information.

I'm not sure if you can do this or not.

I have a single form X that spawns second form Y (the search is handled from X), and when Y is populated with the following continous format:

-------------------------
Form Y, Record 1

Picture = <picture.jpg>
[Unbound Object, loaded with OnCurrent code]
-------------------------
Form Y, Record 2

Picture = <picture2.jpg>
[Unbound Object, loaded with OnCurrent code]
-------------------------
Form Y, Record 3

Picture = <picture3.jpg>
[Unbound Object, loaded with OnCurrent code]
-------------------------


The Unbound Object only loads up <picture.jpg> for all three forms, instead of picture1, picture2, picture3.

Is there a way to change this in Continous form view? In single form view it's no problem, the OnCurrent code works great and the image changes, but for the continous format, I'm not able to get it to function properly.

Thanks again for the assist.

Pat
 
You can't on a continuous form, the OnCurrent event refers to the Current record
 

Users who are viewing this thread

Back
Top Bottom