Get DB file name

Viewed 35

Is there any SQL statement who retrieve the file name for a .mdb DB ?

There is something similar in SQLite: SELECT file FROM pragma_database_list WHERE name='main'

I need the same thing, but for Microsoft Access Database.

1 Answers

You need VBA for this:

DbName = CurrentProject.Name

There is no SQL expression/function.

Related