Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Make a Database Design Master from VBA using JRO

Posted on 2011-02-21
4
603 Views
Last Modified: 2012-05-11
I have a database system that is using replication from Access 2003.

I have a design master template that is stored on our corporate server, and if anyone using the Front End wants to create a new project, then they would using the UI in the front end, click create new, and it would copy the design master template to a directory that they choose.  However it automatically makes that copy a Replica of the design master on the server.  Is there a way that I can copy the database from the server to the location they specify, and then set that new copy to be a design master from VBA?
0
Comment
Question by:VTKegan
  • 2
  • 2
4 Comments
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 34945968
If I'm not mistaken you can use the MakeReplicable method of the JRO library:

http://msdn.microsoft.com/en-us/library/bb237209(v=office.12).aspx

According to that page, the example code "demonstrates how to create a Design Master with the MakeReplicable method."

0
 
LVL 10

Author Comment

by:VTKegan
ID: 34945975
I tried using that method, and it throws back an error saying the database is already replicable.  But it is a replica and not the design master.
0
 
LVL 10

Author Comment

by:VTKegan
ID: 34946024
Ok... so the problem is having the template file already as a design master.  I have to use a file that has not yet been made replicable as the template, and then copy that blank file to the new location and then I can use the MakeReplicable method you suggested.  

Thanks for the help.

0
 
LVL 84
ID: 34946109
Yes - you must "promote" a replica to DM, and if you create a database from a template of a DM, then JRO will make the assumption that it's already a DM.

At least that's what I recall from my foray into replication years ago.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question