Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I have a form that auto-populates text boxes from a table/query when a line in a listbox is clicked.

enter image description here

There is an image control to the right for the same 'Customer' selection.

I have the VBA correct for the auto population of the text boxes but I've not done this for images before.

My existing VBA:

With lst_Customers
    txtCustomerCode.Value = .Column(0)
    txtCustomerName.Value = .Column(1)
    txtCustomerContact.Value = .Column(2)
    txtHomeAddress.Value = .Column(3)
    txtWorkAddress.Value = .Column(4)
End With

This is what the columns of the table/query looks like:

enter image description here

What is the VBA to add the image to the form in this process?

question from:https://stackoverflow.com/questions/65830018/vba-to-autofill-image-control-from-table-query-column

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
979 views
Welcome To Ask or Share your Answers For Others

1 Answer

Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...