Display Database Name in a Form

A

ap1971

I want to acutally display the database name within my switchboard. Can
anyone tell me the correct field code? Is it possible? I want it to act
just like the [Name] field only I want to display the database's actual file
name.
 
R

RonaldoOneNil

Application.CurrentProject.Name

To include the path as well
Application.CurrentProject.FullName
 
A

ap1971

Thanks, Is there a way to prevent the displaying of the file ext?

RonaldoOneNil said:
Application.CurrentProject.Name

To include the path as well
Application.CurrentProject.FullName

ap1971 said:
I want to acutally display the database name within my switchboard. Can
anyone tell me the correct field code? Is it possible? I want it to act
just like the [Name] field only I want to display the database's actual file
name.
 
R

RonaldoOneNil

Left(Application.CurrentProject.Name,Len(Application.CurrentProject.Name)-4)

ap1971 said:
Thanks, Is there a way to prevent the displaying of the file ext?

RonaldoOneNil said:
Application.CurrentProject.Name

To include the path as well
Application.CurrentProject.FullName

ap1971 said:
I want to acutally display the database name within my switchboard. Can
anyone tell me the correct field code? Is it possible? I want it to act
just like the [Name] field only I want to display the database's actual file
name.
 

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