Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Where is the ProjectName property

Status
Not open for further replies.

hennep

Programmer
Dec 10, 2000
429
I have recently converted an mda-file from access 97 to access 2k.
In access 97 there was a a text box under tools\options\advanced to enter the ProjectName.
I cannot find this property at the same place in access2000
When I add the mda to the list of references in a new access database it shows the old projectname, is there a way to change this in access2000 ?

thanks,
Hennie Peters
 
found it in msdn:

debug.print Application.Getoption("Project Name")
Application.Setoption "Project Name", "MyProject"

now we have gone to code, something else

how can I change the database title in code ( database window\database properties\tab summary\title ) ?
 
You can get to it from the user interface, too. Go to the VBA editor window (easiest way is Ctrl-G) and choose Tools|<project name> Properties.

In Access 2000 and other Office 2000 apps, the VBA editor runs as a separate process and maintains its own environment, so the options that affect VBA are only available from its toolbar. This includes not only the project name, but the custom help file, conditional compilation arguments, and the new password to lock access to the code. Also, the code window formatting options and options for debugging and compiling are on VBA's Tools|Options dialog. (For some reason I don't understand, the form grid controls are there, too!) Rick Sprague
 
thanks Rick,

Next version of Access will probably change the place in code as well
If not the database title can be set this way:

CurrentDb.Containers(&quot;Databases&quot;).Documents(&quot;SummaryInfo&quot;).Properties(&quot;Title&quot;) = &quot;MyProjectTitle&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top