P
Paul M
Hello,
when I execute the code below I get the usual access message:
SECURITY WARNING----------------------------------
Opening "<filepath & name.mdb>"
The file may not be safe if it contains code that was intended
to harm your computer.
Do you want to cancel the operation?
CANCEL OPEN MORE INFO
---------------------------------------------------
Private Sub OpenDB(ByVal strMDBFullPath as string)
Dim appDatabase As Access.Application
appDatabase = New Access.Application()
appDatabase.OpenCurrentDatabase(p_strMDBFullPath, True)
....
End Sub
How can I detect if the user presses the CANCEl button? With the code
above if the user presses the CANCEl button the code throws an exception
on the line "appDatabase.OpenCurrentDatabase(p_strMDBFullPath, True)".
The code is VB .net and the database is 2003 but could be 97, 2000 etc.
Thanks in advance
Paul M.
when I execute the code below I get the usual access message:
SECURITY WARNING----------------------------------
Opening "<filepath & name.mdb>"
The file may not be safe if it contains code that was intended
to harm your computer.
Do you want to cancel the operation?
CANCEL OPEN MORE INFO
---------------------------------------------------
Private Sub OpenDB(ByVal strMDBFullPath as string)
Dim appDatabase As Access.Application
appDatabase = New Access.Application()
appDatabase.OpenCurrentDatabase(p_strMDBFullPath, True)
....
End Sub
How can I detect if the user presses the CANCEl button? With the code
above if the user presses the CANCEl button the code throws an exception
on the line "appDatabase.OpenCurrentDatabase(p_strMDBFullPath, True)".
The code is VB .net and the database is 2003 but could be 97, 2000 etc.
Thanks in advance
Paul M.