生成される SQL クエリー内のパラメータの値が、 日付の場合は "#"、文字列の場合は "'"、複数値パラメータの場合は "()" の区切り文字でそれぞれ囲まれるかどうかを示す値を取得または設定します。 このパラメータが false の場合は、
RecordSource 内のすべてのパラメータが既に区切り文字で囲まれている必要があります。 たとえば、EncloseParameterValues == true、 RecordSource = "select * from customers where name = CustomerName" の場合、実際の SQL クエリーは次のようになります。 select * from customers where name = 'Some customer' EncloseParameterValues == false、 RecordSource = "select * from customers where name = 'CustomerName'" の場合、実際の SQL クエリーは次のようになります。 select * from customers where name = 'Some customer'
シンタックス
'宣言
Public Property EncloseParameterValues As System.Boolean
public System.bool EncloseParameterValues {get; set;}
参照