Hello,
I have the following, simpel code to create a commandbutton:
Dim cmdTest As Control
DoCmd.OpenForm "frmcopy", acDesign
Set cmdTest = CreateControl("FrmCopy", acCommandButton, acDetail)
DoCmd.Restore
Now I want to assign a caption and a name to the new control, but I don't know how. I...