Microsoft KB Archive/163347

= PRB: Project Created but No Objects If Add to VSS Is Canceled =

Article ID: 163347

Article Last Modified on 2/12/2007

-

APPLIES TO


 * Microsoft Access 97 Standard Edition

-



This article was previously published under Q163347



SYMPTOMS
Advanced: Requires expert coding, interoperability, and multiuser skills.

When you create a new database and add it to Source Code Control, if you click Cancel in the "Add Objects to SourceSafe" dialog box, the database is added to SourceSafe anyway, but none of the database objects are added to the SourceSafe project.

This article assumes that you are familiar with using the client-side capabilities of Visual SourceSafe. For more information about Visual SourceSafe, please refer to the "Visual SourceSafe User's Guide" or Help topics available from the Visual SourceSafe Help menu.



CAUSE
You created the SourceSafe project, but canceled before the objects in your database were added to the project.

You must click Cancel in the "Add to SourceSafe Project" dialog box if you want to prevent the database from being added to Source Code Control at all.



RESOLUTION
If you want to leave the database under Source Code Control, manually add the database objects to the SourceSafe project. On the Tools menu, point to SourceSafe, and then click "Add Objects to SourceSafe."

If you do not want to leave the database under Source Code Control, compact the database and answer Yes when prompted if you want to remove the compacted database from Source Code Control.



STATUS
This behavior is by design.



Steps to Reproduce Behavior
 Start Microsoft Access and create a new database called NoData.mdb. Create a new table in Design view called MyData: Table: MyData -- Field Name: Field1 Data Type: Text Save the MyData table. You do not need to create a primary key. Select the MyData table in the Database window, and then click AutoForm on the Insert menu. Save the form as Form1, and then close it.</li> On the Tools menu, point to SourceSafe, and then click "Add Database to SourceSafe."</li> In the "Add to SourceSafe Project" dialog box, select or create a project, and then click OK.</li> In the "Add Objects to SourceSafe" dialog box, click Cancel. Note that Microsoft Access continues to add the database to SourceSafe.</li> On the Tools menu, point to SourceSafe, and then click Check Out. Note that your receive the following message:

No objects in this database are available to be checked out from source code control.

</li></ol>

<div class="references_section">