スクリプトである日付からある日付までと範囲選択して、 検索できた文書を表示したいのですが、いろいろやりましたが、 うまくいきません。どなたかわかるかたいますでしょうか。 とりあえず現時点のスクリプトは下記の通りです。 よろしくお願いします。 SearchKey7_1 ="field HWインベントリ取得日時 = """ SearchKey7_2 = "field HWインベントリ取得日時 = """ If doc.key7_1(0) <> "" Then SearchKey = SearchKey & strAndOr & "field HWインベントリ取得日時 > " & doc.key7_1(0) &"""" 'SearchKey = SearchKey & strAndOr & "field HWインベントリ取得日時 > " & Format(doc.key7_1(0),"yyyy/mm/dd") End If 'If doc.key7_2(0) <> "" Then ' SearchKey = SearchKey & strAndOr & SearchKey7_2 & Format(doc.key7_2(0),"yyyy/mm/dd")&"""" 'End If