Roz,
Have you tried setting it to null.
Andy
> How do I remove the datasource of an object? In this instance, if CARSBOX = true, the bodycode is no longer valid
>
>
> function CARSBOX_onChange()
> if this.Value = true
> form.typecontainer.vehtypecode.dataSource = 'array {"SED","HAT","XVR","EST","COU","SCC","SFT","CCP","MPV","REC","ATE","MBS"}'
> form.typecontainer.bodycodebox2.dataSource = ""
> form.typecontainer.subbodycode.dataSource = ""
> form.Itsacar()
> endif
> return
>
> Setting datasource to "" is creating Error: Data type mismatch. Expecting: Object
>
> Thanks
> Roz
|