G
Guest
I have a form that uses a common dialog control to select a file for
importing to the database. If the user clicks the Cancel button it causes an
error, so I tried to catch this with a simple if statement:
If dlg.Cancel = True Then
Exit Sub
End If
However, this gives me a different error -- an invalid reference to the
property Cancel. How can I simply test for Cancel before beginning my file
import routine?
importing to the database. If the user clicks the Cancel button it causes an
error, so I tried to catch this with a simple if statement:
If dlg.Cancel = True Then
Exit Sub
End If
However, this gives me a different error -- an invalid reference to the
property Cancel. How can I simply test for Cancel before beginning my file
import routine?