RemoveQuery 

Syntax

object.RemoveQuery  sConnName,  sQryName

sConnName        String containing Connection name.

sQryName          String containing Query name.

Description

Call this method to remove a specified query from the ELS-QB component.

Remarks

RemoveQuery method returns True if the query has been removed successfully, otherwise it returns False.

Note: To remove the query successfully the specified sConnName and sQryName must exist.

Example

This sample code shows how  programmatically remove  a sample query named  “Customers”

    Dim sConnName, sQryName

    sConnName = "Northwind"

    sQryName = "Customers"

    If ELS_QBCtrl.OpenQuery(sConnName, sQryName) Then

       ELS_QBCtrl.RemoveQuery sConnName, sQryName

    End If