Using OpenCurrentDatabase Method with /wrkgrp Parameter

D

DDJ

Based upon previous posts to this newsgroup, we are trying to figure a way
to open (using VB6 code) a non-password protected Access 2000 database AND
pass the location of the mdw file. We want our users to be able to open the
database in Access and modify various objects, etc. We're using code
similar to the following:

objAccess.OpenCurrentDatabase sDataSource & "\WCData.mdb", False
objAccess.DoCmd.Maximize
objAccess.Visible = True

Is there any way to use the OpenCurrentDatabase method in VB6 AND pass the
location of the mdw file? We are only trying to pass the workgroup info
argument because some of our users are having problems with the above code
(so we understand that we need to ship an mdw file with the product).

Dan
 

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