Matt Nash
08-29-2000, 08:52 AM
I'm trying to create some objects on forms and reports in VBA, but I'm having no luck.
I've tried:
<font color=green>Dim cmd1 as object
set cmd1 = new commandbutton
cmd1.visible=true</font color=green>
It keeps saying <font color=blue>ActiveX can't create object</font color=blue>.
I've tried dimensioning the variable as commandbutton, object, everything, but am still struggling.
Could someone please shed some light on this for me?
Thanks in advance, Matt
I've tried:
<font color=green>Dim cmd1 as object
set cmd1 = new commandbutton
cmd1.visible=true</font color=green>
It keeps saying <font color=blue>ActiveX can't create object</font color=blue>.
I've tried dimensioning the variable as commandbutton, object, everything, but am still struggling.
Could someone please shed some light on this for me?
Thanks in advance, Matt