T
trevorC via AccessMonster.com
Hi All,
The code below is putting a photo on my report but puts the same photo until
it gets a new one then changes to that until a different one is listed in the
dlookup.
Any ideas whould be great.
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Not IsNull(DLookup("[Employee Photo]", "[Employees]", "Reports![employee
barcode cards]![Barcode] =[Barcode]")) Then
Me.employee_photo.Picture = DLookup("[Employee Photo]", "[Employees]",
"Reports![employee barcode cards]![Barcode] =[Barcode]")
Else
Me.employee_photo.Picture = ""
End If
End Sub
The code below is putting a photo on my report but puts the same photo until
it gets a new one then changes to that until a different one is listed in the
dlookup.
Any ideas whould be great.
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Not IsNull(DLookup("[Employee Photo]", "[Employees]", "Reports![employee
barcode cards]![Barcode] =[Barcode]")) Then
Me.employee_photo.Picture = DLookup("[Employee Photo]", "[Employees]",
"Reports![employee barcode cards]![Barcode] =[Barcode]")
Else
Me.employee_photo.Picture = ""
End If
End Sub