
VB4 help wanted : Data Controls don't work
Quote:
>I have a problem with VB4 :
>After I do the setup, everything works fine, except for Add-In manager
>complaining about some things not registered right (?).
>But the Data Manager, and the data controls work fine. When I exit Windoze,
>restart it and VB, running the Data Manager gioves the following error :
>Run-time error '429'
>OLE Automation server can't create object
>And when I create a Data object and try to edit the RecordSource property I get
>:
>Object server not correctly registered.
Never heard or seen that problem. But I am curious, what do you mean
you are trying to set the RecordSource property of a Data Object? To
my knowledge, Data Objects don't have a RecordSource property. You should
set the RecordSource of a Data Object like so:
Dim SShot As Snapshot
Set SShot = MyDBase.CreateSnapshot("SELECT * FROM MyTable")
-or_
Dim QDef As QueryDef
Dim SShot As Snapshot
Set QDef = MyDBase.OpenQueryDef("GetMyTable")
Set SShot = QDef.CreateSnapshot()
J. Kyle Rickett
___________________________________________________
******* ******** ******
** *** ********* ********
** **** *** **** **********
** *** *** **** ******* **
******* *** **** ******
*** *** *** **** *******
*** *** *** **** *******
*** *** *** *** *******
*** *** ******** *******
*** *** ******* ** ******
*** *** ****** *********
International Corporation
Microsoft Solution Provider
Sybase Solutions Partner