CreateControl - Trying to create somthing useful
Hi all
Is it possible to create a complete form (or edit a form) to create a complete all singing all dancing form.
Say for example I wanted to create a form with a command button that executes a simple function
for example
__________________________________________
Create a form and name it frmMyForm
Add a command button
add a line of code attached to the On_click event - Call Myfunction)
Create the function
private function MyFunction()
Msgbox "I made this"
endsub
save the form
open the form
__________________________________________
Alternativly if I had a form that already exists can I Add new controls to that form?
if for example I had a form with all the code in it that is needed, can I add new controls to this form (like a text box name txtMyTextbox)
I am just experementing really, this all came about when I learnt to fake control arrays so I would like to be able to add a series of controls to a form like -
txtMyTextbox1 & txtMyTextbox2 & txtMyTextbox3
Any help would be appreciated
Hi all
Is it possible to create a complete form (or edit a form) to create a complete all singing all dancing form.
Say for example I wanted to create a form with a command button that executes a simple function
for example
__________________________________________
Create a form and name it frmMyForm
Add a command button
add a line of code attached to the On_click event - Call Myfunction)
Create the function
private function MyFunction()
Msgbox "I made this"
endsub
save the form
open the form
__________________________________________
Alternativly if I had a form that already exists can I Add new controls to that form?
if for example I had a form with all the code in it that is needed, can I add new controls to this form (like a text box name txtMyTextbox)
I am just experementing really, this all came about when I learnt to fake control arrays so I would like to be able to add a series of controls to a form like -
txtMyTextbox1 & txtMyTextbox2 & txtMyTextbox3
Any help would be appreciated