import ไฟล์ .dbf
กระทู้เก่าบอร์ด อ.สุภาพ ไชยา

 272   3
URL.หัวข้อ / URL
import ไฟล์ .dbf

ผมอยากจะ import ข้อมูลจากไฟล์ dbf ครับ ลองใช้โค้ด

DoCmd.TransferDatabase acImport, "dBASE III", _
"d:\dbfDB.dbf", acTable, "dbfDB", _
"dbfDB"
มัน error ครับ ว่าหาไฟล์ไม่เจอ รบกวนท่านผู้รู้แนะนำด้วยครับ
แต่ถ้าเป็นไฟล์ access ก็ทำได้ปกติครับ
DoCmd.TransferDatabase acImport, "Microsoft Access", _
"d:\dbfDB.mdb", acTable, "dbfdb", _
"dbfDB"

3 Reply in this Topic. Dispaly 1 pages and you are on page number 1

1 @R05396
ลองค้นด้วยคำว่า .dbf ดูครับ
2 @R05890
ผมใช้อย่างนี้ครับ
DoCmd.TransferDatabase acLink, "FoxPro 2.6", StatDrive & "Pub\", acTable, "Doctor", "Doctor"
ถ้าเป็น fox 2.6 ที่ไม่ใช่ visual fox นะครับ
3 @R05894
ลองดูอันนี้ดูครับ ผมใช้อยู่
DoCmd.TransferDatabase acImport, "dBase 5.0", "d:\ipdincome", acTable, "REGIST46", "REGIST46", False
@ ประกาศใช้งานเว็บบอร์ดใหม่ => บอร์ดเรียนรู้ Access สำหรับคนไทย
แล้วจะใส่ลิ้งอ้างอิงมาที่โพสต์เก่านี้หรือไม่ก็ตามสะดวกครับ
Time: 0.0450s