I am writing VBA within my Access database and I need to reference the containing directory of this database. This path could change since I will be moving the database around.
You will want to use the following code:
CurrentProject.Path
This will return a string representing the file path of the current directory.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With