When I click on the Cancel button while using the Common Dialog Control to save a file, control does not pass to the error label. Can anyone give a hint as to why?
Private Sub mnuSave_Click()
On Error GoTo err
dlgFileOpen.FileName = "tmp.dat"
dlgFileOpen.Filter = "Data (*.dat)|*.dat|All Files (*.*)|*.*"
dlgFileOpen.ShowSave
sFnam = dlgFileOpen.FileName
...
err:
End Sub
Thanks
CaKiwi
"I love mankind, it's people I can't stand" - Linus Van Pelt
Private Sub mnuSave_Click()
On Error GoTo err
dlgFileOpen.FileName = "tmp.dat"
dlgFileOpen.Filter = "Data (*.dat)|*.dat|All Files (*.*)|*.*"
dlgFileOpen.ShowSave
sFnam = dlgFileOpen.FileName
...
err:
End Sub
Thanks
CaKiwi
"I love mankind, it's people I can't stand" - Linus Van Pelt