カテゴリーを見る

Microsoft AccessをExcelに接続する方法 - データベース・データをライブ・ストリームする

接続 · Excelへのアクセス

データを取得する アクセス ファイルを エクセル

ExcelでAccessデータベースを開き、いつでも好きな時に更新できます。ODBCドライバーも、CSVへのエクスポートも、マクロも不要です。初回は約10分で完了し、無料プランで利用できます。

約10分 コーディングは不要です ファイルは元の場所に残ります ウェブ上でも、どこでもExcelを使える
行き詰まったら、遠慮なく質問してください。 開く サポート クエリ ストリーム(右上メニュー → サポート)からメッセージを送信してください。担当者が目を通しますので、「この画面で何を求めているのか分かりません」というご質問は、全く問題ありません。

最終的に手に入るもの

Microsoft AccessのロゴAccessファイルに対するSQLクエリのリアルタイム結果を表示するワークシートで、データが変更されるたびに最新の行を取得するボタンが付いています。例:

Microsoft Access データベースは単一のファイルで、通常は で終わります。 .accdb, .mdbExcel はこれらのファイルを単独で開くことができず、通常の回避策としては ODBC ドライバーをインストールして接続文字列と格闘する必要があります。Query Streams はこれらの手間を省きます。小さなヘルパープログラムが既に保存されているファイルを読み込み、Excel アドインが必要な行をそのファイルから取得します。両者が同じコンピューター上にある必要はありません。ファイルはオフィスのコンピューターにあり、ユーザーは自宅のノートパソコン、遠く離れた同僚のコンピューター、または Web 上の Excel など、どこからでもアクセスできます。

ファイルの保存場所オフィスのコンピュータ、サーバー、または自宅のコンピュータアクセスファイルorders.accdb · ここに滞在しますクエリストリームエージェントwhere it can open the fileクエリストリーム暗号化されたリンクインターネット経由 · 結果のみあなたがどこにいてもあなたのノートパソコン、別のオフィス、ホテル、あなたの電話エクセルWindows、Mac、またはウェブ版Excel
The Agent runs where it can open the file. Excel does not have to. Open the sheet anywhere and the rows come to you.

必要なもの

クエリストリームアカウント

このガイドは無料プランで十分です。登録はこちらから my.querystreams.com.

The Agent on a computer that can open the file

バックグラウンドで実行され、Excelが要求したときにファイルを読み込む小さなプログラムです。入手方法は以下の手順2をご覧ください。

アクセスファイル

例えば、それがどこにあるかを知る C:\Data\orders.accdb または \\server\share\orders.accdb. If it lives in OneDrive, Dropbox or Google Drive, make sure it is synced to the Agent’s computer.

どのコンピュータにエージェントがインストールされますか? The one where the file is, or one that can open it from a network share (see Reaching a file on a network share below). That computer needs to stay on. Excelはどこにでも配置できる自宅のノートパソコン、遠く離れた同僚のパソコン、あるいはウェブ上のExcelなど、Excelが動作する環境であればどこでも利用可能です。Excelが動作する場所には、他に何もインストールする必要はありません。

接続方法は5つのステップです

  1. アカウントを作成する

    行く my.querystreams.com そしてサインアップします。 無料 これは計画です。試作ではなく、正式な計画であり、Access ファイルへの接続方法や Excel からのクエリ実行方法などを網羅しています。

  2. Install the Agent on a computer that can open the file

    サインインして開く ダウンロード, and install the Agent for your system on the computer where the file is, or on one that can open it from a network share. It takes a minute and starts on its own from then on.

    ドライバではなく、なぜ小さなプログラムを使うのか? The Agent is one install for Windows, Mac or Linux (about 85 MB on Windows, a little over 100 MB on Mac and Linux) that runs quietly in the background. It makes one outbound, encrypted connection to Query Streams, the same way a browser does, so you open no firewall port and set up no VPN. The file stays where it is, and the rows travel to wherever you are, across the internet if need be. The only thing on your side is the add-in.

    ダウンロードページには アクセスキーエージェントに求められたら貼り付け、バッジが読み取るまで待ちます。 クエリ ストリームに接続しましたエージェント本体で行う操作はそれだけです。

    ご希望であれば、完全攻略ガイドもご用意しています。 Windows, マック, Linux.

  3. Access ファイルを指定してください。

    ブラウザに戻って、 データエージェント (下 データ 上部メニューにあります。エージェントがそこに表示されています。クリックしてください。 コネクタを追加する、 選ぶ マイクロソフトアクセス、そして記入してください。

    まず最初に確認すべきことが一つあります。 エージェントのコンピューターには、マイクロソフトの無料64ビット版が必要です。 アクセスデータベースエンジンポータルは、Microsoft Accessを選択した瞬間にそれをチェックし、 エンジンをダウンロード button if it is missing. If that computer has 32-bit Office, do not install the engine there: If the computer has 32-bit Office. File on another computer? See Reaching a file on a network share 下に。

    接続名
    後で必ず思い出すような名前、例えば「販売データベース」など。
    データベースファイルのパス
    Where the Access file (.accdb or .mdb) is: a path on the Agent’s computer, like C:\Data\orders.accdb, or a network path, like \\server\share\folder\orders.accdb, never a mapped drive letter such as S:. Use Browse to pick it.

    クリック 接続テスト読むと 接続済み、 クリック セーブ接続は数秒以内に担当エージェントに到達します。

    テストは失敗しましたか? Usually the database engine is not installed (the banner above the form says so), the path uses a mapped drive letter such as S: that the Agent service cannot see (type \\server\share\folder\file.accdb instead), or the path has a typo. A share that turns the Agent away is covered under Test failed on a share? 下に。 すべてのテストメッセージとその修正.

  4. See your data in Query Builder オプション

    You can look at your Access file before Excel is involved at all. Open クエリビルダー in the portal and pick the connection you just made. The スキーマ tab lists your tables and columns, and clicking one puts its name in the editor, so you can write a query without remembering exact names. Click 走る and the rows appear under 結果. Query Builder is on every plan, Free included.

    On Business plans you can also ask Nova in plain English (“show me customers in the USA”) and it writes the SQL for you. When the query looks right, save it: from Personal Core up it shows in the add-in’s Saved Queries list, and on any plan you can copy the SQL into the next step.

  5. Excelにクエリ ストリームを追加する

    Excelで、 挿入 → アドインを取得、 検索する クエリストリーム、そしてクリック 追加または、直接開く Microsoft AppSource のクエリ ストリームリボンに「クエリ ストリーム」ボタンが表示されます。同じアカウントでサインインしてください。

    WindowsおよびMac版のMicrosoft 365版Excel、およびWeb版Excelで動作します。

  6. 最初のテーブルを運び入れる

    クエリ ストリーム ボタンをクリックし、 クエリをストリーミングするそして、先ほど接続した接続を選択してください。

    実行したいクエリを入力してください。これは、いくつかの列を抽出します。 お客様 テーブル:

    例:SQL
    顧客ID、会社名、都市の上位100件を顧客リストから選択し、会社名で並べ替えます。

    下 目的地一覧表 選ぶ 新しいシートを作成します次に再生ボタン(▶矢印)を押します。行は1~2秒でExcelに反映されます。データが変更された場合はいつでももう一度押すと、シートがその場で更新されます。

    SQLを知らない? Build it in クエリビルダー first and paste it here, or pick it from Saved Queries if you saved it.

Reaching a file on a network share

Windows

Type the network path, like \\server\share\folder, never a mapped drive letter such as S:, which the Agent cannot see. If the share only lets in named people, click Service identity (the chip under the path) and store a login for that server: a company domain account, or an account made on the server itself with Domain left blank. The Agent then signs in to that server and reads the file there, and every connector on that Agent that reads the same server must use the same login. Without a login, it reads as its own service account, which a company domain sees as the computer itself. Step by step on Windows

If the test cannot get to the share, look for these words in its result: unreachable means the Agent’s computer got no answer from the server.

Microsoft Access file on a share? The account the Agent reads with needs Modify permission on the folder, because Access creates a .laccdb lock file beside the database even when it only reads. Do not run the Agent for Access on a computer with 32-bit Office; use a dedicated computer without it. Signing in to the file server - If the computer has 32-bit Office

Test failed on a share?

A Windows Agent signs in to the file server itself, so its test result can also say:

メッセージ原因修理
Access denied for the agent’s service account under the path, or アクセスが拒否されました in the test resultThe share lets in named people only, and the Agent’s own Windows account is not one of them. Or the login stored for that server may not read this share.クリック Service identity under the path and store a login that can read the share. If one is stored already, ask whoever runs the server to give that account read access.
the credentials were refusedThe server turned the stored login down: a typo, the wrong domain, or a password changed since it was saved.Click the account name under the path and type the login again; for an account made on the server itself, leave Domain blank. were refused moments ago means the Agent waits a minute before it tries that same login again, so the account is not locked out; saving a corrected password tries again straight away.
Another connector on this agent already signs in to、または Windows already holds a sign-in toThis Windows computer already signs in to that server as a different account, through another connector or another program. Windows allows one account per server.Store the login the other connector uses, or change it on every connector that reads that server. After Windows already holds a sign-in, the rest of the message says which account it is and what to do.
The agent cannot write to the folder containing the Access databaseThe account can read the file but cannot create the .laccdb lock file beside it.Give that account Modify permission on the folder, the same as any Access user has.
This agent build cannot sign in toThe Agent is an older version that cannot use stored share logins.Update the Agent, then test again.

それでおしまい。 データはシート内に保存され、ワンクリックで常に最新の状態に保たれます。お客様が要求した行以外は、ネットワークから外部に送信されることはありません。

良い次の動き

  • クエリを保存します ポータルにインストールすれば、ExcelやGoogleスプレッドシートからワンクリックで再度実行できます。
  • フィルターを追加する 例えば日付範囲などを指定することで、同じクエリで編集せずに「今月」という回答を得ることができます。
  • 結果を共有する 同僚と共有する場合、同僚はファイルの内容やファイルパスではなく、行数を見ることになります。

人々が尋ねる質問

ExcelはAccessファイルと同じコンピューターにインストールされている必要がありますか?

No. Only the Agent has to be able to open your Access file. Excel can be on any computer with an internet connection, including Excel on the web and Excel on a Mac. Sign in to the add-in with your account and your connections are there.

私のデータベースファイルはどこかにアップロードされますか?

No. The Agent reads the file where it sits and sends only the rows your query asks for. The file stays where it is.

ファイルはOneDrive、Dropbox、またはGoogle Driveに保存されていても構いませんか?

はい、エージェントが実行されているコンピューターと同期されていれば問題ありません。そうすれば、エージェントはそれを通常のローカルファイルとして認識します。接続先を同期済みのコピーに設定してください。

無料プランで本当にこれがカバーされるのですか?

はい。無料プランは継続して利用できるプランで、期限切れのトライアルではありません。プランに含まれる内容については、 価格ページ.

Mac版Excelでも動作しますか?

はい。Mac版とWindows版のMicrosoft 365版Excel、そしてWeb版Excelが利用可能です。

まだ行き詰まっていますか? 開く サポート クエリ ストリームで、どのステップで何が表示されているかをお知らせください。接続をご案内いたします。
クエリ ストリームは同じデータを接続しますグーグル シートクロード、カーソル、チャットGPTREST APIさらに

すべてのガイド Access

あなたの設定とは少し違いますか?

  • Excelワークブック自体をクエリしたいですか?Excel Folderはワークブックのフォルダをテーブルとして読み取ります→ Excel Folder

Setup trouble?

  • Access engine will not install, the file is on a mapped drive, or Test connection fails? The Access setup page walks each fix click by click → Microsoft Access connector setup
  • Agent shows Offline, or Test connection and Browse are greyed out? Check that the Agent is online → Is the Agent online?
更新日 10月 17, 2026