Current database name

S

Sarah

Does anyone know how to find the current database name using code? I know
how to find the path:

Application.CurrentProject.Path

Thanks,

Sarah
 
K

kingston via AccessMonster.com

Application.CurrentProject.Name
Does anyone know how to find the current database name using code? I know
how to find the path:

Application.CurrentProject.Path

Thanks,

Sarah
 
S

Sarah

I've tried that and it doesn't give me the full path location. It gives the
path that my windows explorer is set to... don't ask me why. It just does.

Any other alternatives?

Thanks,

Sarah
 
K

kingston via AccessMonster.com

Is this what you're looking for?

string = Application.CurrentProject.Path & "\" & Application.CurrentProject.
Name
I've tried that and it doesn't give me the full path location. It gives the
path that my windows explorer is set to... don't ask me why. It just does.

Any other alternatives?

Thanks,

Sarah
Application.CurrentProject.Name
[quoted text clipped - 6 lines]
 
K

kingston via AccessMonster.com

CurrentProject.FullName
I've tried that and it doesn't give me the full path location. It gives the
path that my windows explorer is set to... don't ask me why. It just does.

Any other alternatives?

Thanks,

Sarah
Application.CurrentProject.Name
[quoted text clipped - 6 lines]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top