P
Pele
In the Access application I had put together, I wrote a
macro linked to a command button to go an import a text
file from a pre-defined directory path and add the file to
a database table.
The problem is, the macro just asks the User as to if they
have the file available. If they say, YES, the macro will
then go ahead and import the text file. The problem arises
if the User says YES BUT if the text file is not available
at the sub-directory. If this happens, the macro just
halts and displays the database window.
I would prefer to add some commands to my macro such that
if the file doesn't exist, the macro should give the
warning and then go back to the Switchboard (instead of
opening the database window; which I don't want the User
to have access to).
Can anybody help. Thanks.
Pele
macro linked to a command button to go an import a text
file from a pre-defined directory path and add the file to
a database table.
The problem is, the macro just asks the User as to if they
have the file available. If they say, YES, the macro will
then go ahead and import the text file. The problem arises
if the User says YES BUT if the text file is not available
at the sub-directory. If this happens, the macro just
halts and displays the database window.
I would prefer to add some commands to my macro such that
if the file doesn't exist, the macro should give the
warning and then go back to the Switchboard (instead of
opening the database window; which I don't want the User
to have access to).
Can anybody help. Thanks.
Pele