Form Names (1 Viewer)

PaulSpell

Registered User.
Local time
Today, 08:33
Joined
Apr 19, 2002
Messages
201
Can someone please explain how to programatically change the name of a form.

I have written the code to build a form dynamically but can't see that there is a way of specifying a form name using "CreateForm". Hence it is saved as "Form1". This is ok as long as I can then rename it, can someone help?
 

simongallop

Registered User.
Local time
Today, 08:33
Joined
Oct 17, 2000
Messages
611
DoCmd.Rename "NewNameHere", acForm, "Form1"

NOTE: Form1 must be closed to be able to rename it

HTH
 

Users who are viewing this thread

Top Bottom