CreateControl

raindrop3

Registered User.
Local time
Today, 23:41
Joined
Sep 6, 2001
Messages
98
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 tried several things, but it won't work.

Any help is greately appreciated

Albert
 

Users who are viewing this thread

Back
Top Bottom