How can I display more than one picture linked to a unique ID for a record with either more than one image control or advancing through a single image control with navigation buttons? Since a saved image file cannot have the same name I am not sure how to proceed. I even tried using wildcard characters * to extend an ID on saved image file names and still be able to find that path in the below code. I am using the following for displaying one image:
Private Sub Form_Current()
If Not Me.NewRecord Then
Me.Image5.Visible = _
IIf(Dir("C:\Documents and Settings\Owner\My Documents\Hospital\SigMD\" & Me![MDid] & ".jpg"
= "", False, True)
If Me.Image5.Visible Then
Me!Image5.picture = "C:\Documents and Settings\\My Documents\Hospital\SigMD\" & Me![MDid] & ".jpg"
DoCmd.RepaintObject acForm, "PhysicianInfo"
End If
End If
End Sub
Can someone help me? Thanks tons in advance =)
Debbie
Private Sub Form_Current()
If Not Me.NewRecord Then
Me.Image5.Visible = _
IIf(Dir("C:\Documents and Settings\Owner\My Documents\Hospital\SigMD\" & Me![MDid] & ".jpg"
If Me.Image5.Visible Then
Me!Image5.picture = "C:\Documents and Settings\\My Documents\Hospital\SigMD\" & Me![MDid] & ".jpg"
DoCmd.RepaintObject acForm, "PhysicianInfo"
End If
End If
End Sub
Can someone help me? Thanks tons in advance =)
Debbie