Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Continous Form Pictutes

Status
Not open for further replies.
May 5, 2002
79
US
Hi,

I have created a form in which I assign a image to a unbound image field based upon the following code that has a field on the form that contains the path to the image. In the past I have used this on a single form and in the on current event. However, I need this in a subform that is continous form showing multiple records with each image corresponding to path field. Right now each record say 2 or 3 shows the same image unless you move to another record. So the on form current event doesn't work. How can I show a image that is assigned from another path field for each record in the subform. My current on Form Current event form is:

On Error GoTo err_Form_Current

If Not Me!txtMicroPhotoLoc = "" Or Not IsNull(Me!txtMicroPhotoLoc) Then
Me!Picture.Picture = Me!txtMicroPhotoLoc
Else
Me!Picture.Picture = "C:\UCSF\ucsf-logo-r2.jpg"
End If


exit_Form_Current:
Exit Sub

err_Form_Current:
MsgBox Err.Description
Resume exit_Form_Current


Any help is greatly appreciated.
 
You must use a bound image box so you cannot do it through code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top