F
Frank Situmorang
Hello,
Thi is my VBA to change the image in my imageframe on the Main Menu. The
picture will show up when we close then we open.
I guess that there must be an VBA to be put in the current event. of the
form, but anyone can help me what it is?
Private Sub cmd_FindImage_Click()
Dim strPath1 As String
' get picked file path
strPath1 = GetOpenFile
' if there is something there
If Not (Len(strPath1 & "") = 0) Then
'set ImagePath1 equal to picked path
Me.txt_ImagePath1 = strPath1
End If
Exit_Handler:
Exit Sub
Err_Handler:
Select Case Err.Number
Case Else
Call ShowError(Err.Number, Err.Description, _
"Form_Defaults Form." & "cmd_FindImage_Click")
Resume Exit_Handler
End Select
End Sub
Thanks in advance
Thi is my VBA to change the image in my imageframe on the Main Menu. The
picture will show up when we close then we open.
I guess that there must be an VBA to be put in the current event. of the
form, but anyone can help me what it is?
Private Sub cmd_FindImage_Click()
Dim strPath1 As String
' get picked file path
strPath1 = GetOpenFile
' if there is something there
If Not (Len(strPath1 & "") = 0) Then
'set ImagePath1 equal to picked path
Me.txt_ImagePath1 = strPath1
End If
Exit_Handler:
Exit Sub
Err_Handler:
Select Case Err.Number
Case Else
Call ShowError(Err.Number, Err.Description, _
"Form_Defaults Form." & "cmd_FindImage_Click")
Resume Exit_Handler
End Select
End Sub
Thanks in advance