Hi evryone,
I have to create a database with more than ten thousand records. There is a field on which image by clicking the image to be displayed with the default program based on the image on which you clicked. Whit this code:
when onClick event happens on the image is displayed the same image regardless of the record on which you clicked. How do I change the code to open the image of the field that was clicked? (I'm a beginner of VBA)
I have to create a database with more than ten thousand records. There is a field on which image by clicking the image to be displayed with the default program based on the image on which you clicked. Whit this code:
Code:
Private Sub Campo1_Click()
Dim L As Long
L = ShellExecute(0, "Open", """" & "C:\Users\Nick\Desktop\Documenti\Pictures\DioDiego.jpg" & """", vbNullString, vbNullString, 1)
[FONT=Calibri]End Sub[/FONT]
[FONT=Calibri][SIZE=3] [/SIZE][/FONT]
when onClick event happens on the image is displayed the same image regardless of the record on which you clicked. How do I change the code to open the image of the field that was clicked? (I'm a beginner of VBA)