Application.QueryDB

This function queries a DB with SQL using a connection string and flag to specify using advanced query builder.

Syntax Parameters Return Value
Function Application.QueryDB( _
    SQL As String, _
    ConnectionString As String, _
    Optional AQB As Boolean = False, _
    Optional CaseNo As Integer = 0, _
    Optional VarNo As Variant = 0) As Spreadsheet
  • SQL [in]

Type: String

  • ConnectionString [in]

Type: String

  • AQB [in,optional]

Type: Boolean

Default value: False

  • CaseNo [in,optional]

Type: Integer

Default value: 0

  • VarNo [in,optional]

Type: Variant

Default value: 0

Spreadsheet