I want to have a button that will create a local replica of the current database and assign a replication formula specific to that user. I have tried this with sample code in Domino Designer Help and with code on SearchDomino.com. Both failed. The Help code kicked off the new replica before I could assign the formula, so a full replica was made. The Search Domino code is flawed, disabling replication on the server db before attempting to create the local replica. This obviously fails because the server db can't replicate. Does anyone know how this can be done? I basically want to automatically set the values that would appear in a New Replica dialog so the user does not have to set them. These are the examples I have tried to adopt to this purpose, which failed as described above.