G
Guest
Greetings one and all,
I'm stuck! I'm attempting to design a report that displays multiple
user-selected images which correspond to individual records. The code below
is as close as I've been able to get, but it only repeats the first image for
every record in the recordset. Any help would be most appreciated.
Private Sub Report_Activate()
Dim db As DAO.Database
Dim rs As DAO.Recordset
Dim strSQL As String
Dim lidx As Long
Dim strPath As String
Set db = CurrentDb
strSQL = "SELECT * FROM tblVisuals " & "WHERE nfldidxItems = " & lidx & ""
lidx = Me!idxItems
strPath = tfldImagePath
Set rs = db.OpenRecordset(strSQL)
With rs
Me!imgItem.Picture = (strPath)
End With
rs.Close
End Sub
I'm stuck! I'm attempting to design a report that displays multiple
user-selected images which correspond to individual records. The code below
is as close as I've been able to get, but it only repeats the first image for
every record in the recordset. Any help would be most appreciated.
Private Sub Report_Activate()
Dim db As DAO.Database
Dim rs As DAO.Recordset
Dim strSQL As String
Dim lidx As Long
Dim strPath As String
Set db = CurrentDb
strSQL = "SELECT * FROM tblVisuals " & "WHERE nfldidxItems = " & lidx & ""
lidx = Me!idxItems
strPath = tfldImagePath
Set rs = db.OpenRecordset(strSQL)
With rs
Me!imgItem.Picture = (strPath)
End With
rs.Close
End Sub