Hi
I'm trying to write a simple VB form with an AccpacDataSource, an AccpacFieldEditControl and an AccpacViewList. In design mode, everything is ok. I can set a ViewID to the AccpacDataSource (GL0001 for example) link the FieldEdit and ViewList to the datasource etc.
However, at run time, I can not Set the AccpacDataSource.Active to True.... It always report an error "Method Active of object IAccpacDataSource failed".
Before setting the Active Property, I have these codes:
Dim mySession as new AccpacCOMAPI.AccpacSession
dim mySignonManager as New AccpacSignonManager.AccpacSignonMgr
mySession.Init "", "CS", "CS0001", "5.0"
mySignonManager.Signon mySession
adsGL0001.Session=mySession
adsGL0001.Active=True
(adsGL0001 is the name of my AccpacDataSource control)
If you could please point out what might be wrong with the code and/or provide me with a source of a small VB program with those control and can open any view using sample company, I would very much appreciate it.
Thank you very much
I'm trying to write a simple VB form with an AccpacDataSource, an AccpacFieldEditControl and an AccpacViewList. In design mode, everything is ok. I can set a ViewID to the AccpacDataSource (GL0001 for example) link the FieldEdit and ViewList to the datasource etc.
However, at run time, I can not Set the AccpacDataSource.Active to True.... It always report an error "Method Active of object IAccpacDataSource failed".
Before setting the Active Property, I have these codes:
Dim mySession as new AccpacCOMAPI.AccpacSession
dim mySignonManager as New AccpacSignonManager.AccpacSignonMgr
mySession.Init "", "CS", "CS0001", "5.0"
mySignonManager.Signon mySession
adsGL0001.Session=mySession
adsGL0001.Active=True
(adsGL0001 is the name of my AccpacDataSource control)
If you could please point out what might be wrong with the code and/or provide me with a source of a small VB program with those control and can open any view using sample company, I would very much appreciate it.
Thank you very much