I have a catalogue page containing 64 (8x8) images and a text box associated with each image containing a part number. The images are named Image1 - Image64 and the text boxes Text1 to Text64. To populate the page I read in a record from a table containing amongst other things the Part number and extract an image from a file.
The code is:
Set Rs = Db.OpenRecordset("SELECT * FROM PartCat WHERE PartNo > 999999;")
i = 1
Do Until i > 64
Me.Controls("Text" & i) = Rs!PartNo
Rs.MoveNext
i = i + 1
Loop
This works fine for the Text but not for the Images Me.Controls("Image" & i) fails. I have been through microsoft's help but cannot find the trick to do it.Can anybody help?