Discussion Locked

Access: get the filename

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi, is there a way to pass the filename of an Access application to a variable using VBA? perhaps by inspecting a property of the

Thank you
Andrew

1 reply

by onbliss

...can be used to access different properties and methods pertaining to the Access application.

So in your VBA code, you could use something like [b]filename = CurrentProject.Name[/b] to access the name. There should be properties for path, fullname etc.

This discussion is closed to new replies.