Closes an open Recordset object.
ConnectionObject.Close (Recordset)
If an edit is in progress, the Close method generates an error; instead, call the Update method or CancelUpdate method first.
Newlook Smartclient
Newlook Server
Recordset - (String, Required)
Specifies the name of the Recordset object to close. The recordset name must be enclosed in quotation marks.
In the following example we are connecting to an Access database, checking to see if a value exists in the open recordset, then disconnecting the connection. VB SCRIPTsConnectString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=@test\crm.mdb;Mode=Share Deny None;Persist Security Info=False" App.DbConnect "SampleConnection", nlDBServerADO, sConnectString SampleConnection.Open "SampleRecordset", "Table1", nlDBUseClient, nlDBOpenDynamic, nlDBLockReadOnly, nlDBCmdTable SampleRecordset.Move nlDBMoveFirst SampleRecordset.Find "EntityRef =" & App.GetValue("varSearch"),nlDBFindForward If SampleRecordset.EOF = False then
else
End If SampleConnection.Close "SampleRecordset" SampleConnection.Disconnect
The following function closes the database and the connection to the database server JSCRIPTfunction close() {
} |
DBConnect Method | Open Method | Disconnect Method | Close Method | Find Method | Move Method | AddNew Method | BeginTrans Method | CancelUpdate Method | CommitTrans Method |Delete Method | RollbackTrans Method | Seek Method | Update Method | ConnectionString property | DB Connection object
© 2004-2021 looksoftware. All rights reserved.