I would like to create a macro in access which closes the database when a report is closed. Can anyone advise how i would go about doing this?

The reason behind this is that in my vb.net app i have a function to view access reports however once the report has been closed i dont want the user to be able to access anything else in the database therefore i will run the macro from my app to close the database.

Would appreciate any help greatly