there is no object in this control
am 27.10.2007 15:28:35 von fredloh
i have a microsoft date and time picker on a form. when i open the
form on the pc where the form was created, the form opens and display
the control properly. however, it opens just fine in some other pc and
not fine in some other pc.
in the pc where it is not working properly, before the form opens,
there is an error message "There is no object in this control." the
form then opens and in place of the control is a white rectangle.
also, on the pc giving the problem, when i import the form into a new
database. i get the error message "There was an error loading an
Activex control on one of your forms or reports".
all the pc runs windows XP. there are no missing reference and the
control name appears in the activex register list. all the access
version on all the pc is 2002.
how do i resolve this problem? any help is appreciated.
Re: there is no object in this control
am 27.10.2007 16:10:32 von Tom van Stiphout
On Sat, 27 Oct 2007 06:28:35 -0700, fredloh@gmail.com wrote:
This is the normal behavior when an activex control is not present or
not properly registered on the target machine.
ActiveX controls don't require a reference and are not necessarily
installed with Windows or Access.
Proceed as follows:
On your dev computer design the form, select the control, and inspect
the Class property. It will say something like "MSComCtl2.DTPicker.2"
This tells you the control is likely implemented by mscomctl2.ocx.
Copy that file to the target machine, and in a command window run:
regsvr32.exe mscomctl2.ocx
This registers the control with Windows.
Then try again.
Note: some controls require a license fee to be distributed, and
others are more complex to install. If you have many machines to
maintain, you should look into creating a setup program.
-Tom.
>i have a microsoft date and time picker on a form. when i open the
>form on the pc where the form was created, the form opens and display
>the control properly. however, it opens just fine in some other pc and
>not fine in some other pc.
>
>in the pc where it is not working properly, before the form opens,
>there is an error message "There is no object in this control." the
>form then opens and in place of the control is a white rectangle.
>
>also, on the pc giving the problem, when i import the form into a new
>database. i get the error message "There was an error loading an
>Activex control on one of your forms or reports".
>
>all the pc runs windows XP. there are no missing reference and the
>control name appears in the activex register list. all the access
>version on all the pc is 2002.
>
>how do i resolve this problem? any help is appreciated.
Re: there is no object in this control
am 31.10.2007 16:02:41 von fredloh
On Oct 27, 10:10 pm, Tom van Stiphout wrote:
> On Sat, 27 Oct 2007 06:28:35 -0700, fred...@gmail.com wrote:
>
> This is the normal behavior when an activex control is not present or
> not properly registered on the target machine.
> ActiveX controls don't require a reference and are not necessarily
> installed with Windows or Access.
>
> Proceed as follows:
> On your dev computer design the form, select the control, and inspect
> the Class property. It will say something like "MSComCtl2.DTPicker.2"
> This tells you the control is likely implemented by mscomctl2.ocx.
> Copy that file to the target machine, and in a command window run:
> regsvr32.exe mscomctl2.ocx
> This registers the control with Windows.
> Then try again.
>
> Note: some controls require a license fee to be distributed, and
> others are more complex to install. If you have many machines to
> maintain, you should look into creating a setup program.
>
> -Tom.
>
> >i have a microsoft date and time picker on a form. when i open the
> >form on the pc where the form was created, the form opens and display
> >the control properly. however, it opens just fine in some other pc and
> >not fine in some other pc.
>
> >in the pc where it is not working properly, before the form opens,
> >there is an error message "There is no object in this control." the
> >form then opens and in place of the control is a white rectangle.
>
> >also, on the pc giving the problem, when i import the form into a new
> >database. i get the error message "There was an error loading an
> >Activex control on one of your forms or reports".
>
> >all the pc runs windows XP. there are no missing reference and the
> >control name appears in the activex register list. all the access
> >version on all the pc is 2002.
>
> >how do i resolve this problem? any help is appreciated.
thanks for the help. the registration help fix the problem. what's
interesting though is that some pc don't give the error message but
still show the control as a white box, i.e. before the registration.