Error #: 52 Message: No table is open in the current work area. Line #: 30 Code: lnBufferMode = CURSORGETPROP("Buffering", This.cAlias) Method: init Object: abo_maccounts Error #: 52 Message: No table is open in the current work area. Line #: 32 Code: IF CURSORGETPROP("SourceType") = DB_SRCTABLE Method: init Object: abo_maccounts Error #: 107 Message: Operator/operand type mismatch. Line #: 40 Code: This.oBehavior.lCheckForUpdateConflicts = (lnWhereType = DB_KEY) AND INLIST(lnBufferMode, DB_BUFOPTRECORD, DB_BUFOPTTABLE) Method: init Object: abo_maccountsI reset the views back to Not Shared and the app starts working normally. I use CodeBook 6.2 as the framework. But nevertheless I have successfully got the connection handle atleast for SQL Pass-thru's from the connection name that I have stored in the DBC.
... in the startup of the app object THIS.nConnHandle = SQLConnect("VSO3Data_FB")
... in the cleanup of the app object SQLDISCONNECT(THIS.nConnHandle)>And why would you close the Database in the middle of your application?