Montemontgo
Registered User.
- Local time
- Today, 04:15
- Joined
- Oct 25, 2004
- Messages
- 26
In a form of my famous people database I have a command button which should open the appropriate picture. All pictures are stored in a separate folder "E:\stamps". What would be the command line so that instead of "Beethoven" it will use the string displayed in the field "surname" of the form.
Private Sub Comando7_Click()
On Error GoTo Err_Comando7_Click
Dim stAppName As String
stAppName = "E:\iview336g\i_view32.exe E:\stamps\Beethoven.jpg"
Call Shell(stAppName, 1)
Exit_Comando7_Click:
Exit Sub
Err_Comando7_Click:
MsgBox Err.Description
Resume Exit_Comando7_Click
End Sub
Private Sub Comando7_Click()
On Error GoTo Err_Comando7_Click
Dim stAppName As String
stAppName = "E:\iview336g\i_view32.exe E:\stamps\Beethoven.jpg"
Call Shell(stAppName, 1)
Exit_Comando7_Click:
Exit Sub
Err_Comando7_Click:
MsgBox Err.Description
Resume Exit_Comando7_Click
End Sub