0

I created a form in Microsoft Access 2013 with a listbox called lstPhotoID that is populated with photo names from a query.

I want to display, on the same form, a preview of the images as I click on (select) an image in the list.

I added an image box imgPreview and set the Picture property to Linked but beyond this I'm stuck.

4

1 回答 1

0

使 lstPhotoID 列表框控件的记录源为 2 列,例如 select from table name,column1,column2

第 1 列是基表中的 photoid 字段,而第 2 列是基表中的图像字段。

然后在窗体中,在 photoid 控件的更新事件之后,放置以下代码 imgPreview=lstPhotoID.column(1)

于 2020-01-09T16:25:14.877 回答