Hi again,
I would like to learn how to make this work
With a click of a button I copy and rename a table and form from templates
the problem is that I want relink the new form to the new table (instead of being linked to the template)
Access keeps telling me that NewName! form does not exist. Its taking the name literally instead of its value. Could anyone help
Private Sub Command6_Click()
NewName = Username.Value
DoCmd.CopyObject , NewName, acTable, "template"
DoCmd.CopyObject , NewName, acForm, "template"
Forms!NewName!ID.ControlSource = [NewName]![ID]