---
title: Access.Database – เชื่อมต่อฐานข้อมูล Access
url: https://www.thepexcel.com/functions/power-query/accessing-data-functions/access-database/
type: function-explainer
program: Power Query
syntax: access_database(value as any) as any
date: 2025-12-12
updated: 2025-12-17
scores:
  popularity: 5
  difficulty: 3
  usefulness: 5
---

# Access.Database – เชื่อมต่อฐานข้อมูล Access

> เชื่อมต่อฐานข้อมูล Access

## คำอธิบาย

Access.Database ใช้สำหรับการเชื่อมต่อกับไฟล์ฐานข้อมูล Microsoft Access (.mdb, .accdb) และดึงข้อมูลจากตาราต่างๆ

## Syntax

```excel
access_database(value as any) as any
```

## Arguments

| Name | Required | Type | Default | Description |
| --- | --- | --- | --- | --- |
| value | Yes | any |  | ค่าที่ต้องการประมวลผล |

## ตัวอย่าง

### 1. ตัวอย่างที่ 1

```excel
access_database(data)
```

**ผลลัพธ์:** `ผลลัพธ์`

การใช้งานพื้นฐาน

### 2. ตัวอย่างที่ 2

```excel
access_database(table1)
```

**ผลลัพธ์:** `ผลลัพธ์ที่ประมวลผล`

ใช้กับตารางข้อมูล

### 3. ตัวอย่างที่ 3

```excel
let result = access_database(myData) in result
```

**ผลลัพธ์:** `ผลลัพธ์สุดท้าย`

ใช้ในสูตร let...in

## หมายเหตุเพิ่มเติม

⚠️ ฟังก์ชันนี้ใช้สำหรับการเชื่อมต่อและดึงข้อมูลจากแหล่งข้อมูลภายนอก

## คำถามที่พบบ่อย

**Q: ฟังก์ชันนี้ใช้สำหรับอะไร**

Access.Database ใช้สำหรับการเชื่อมต่อกับไฟล์ฐานข้อมูล Microsoft Access (.mdb, .accdb) และดึงข้อมูลจากตาราต่างๆ

**Q: ข้อมูลส่งเข้าจำเป็นต้องมีรูปแบบไหน**

ข้อมูลสามารถเป็นตารางหรือรายการที่ตรงกับรูปแบบที่ต้องการ

## แหล่งข้อมูลเพิ่มเติม

- [Microsoft Learn: Power Query M](https://learn.microsoft.com/en-us/powerquery-m/access-database) _(documentation)_

---

_Source: [https://www.thepexcel.com/functions/power-query/accessing-data-functions/access-database/](https://www.thepexcel.com/functions/power-query/accessing-data-functions/access-database/)_
