เชื่อมต่อ Mysql ด้วย ODBC แถวที่เป็นตัวอักษรภาษาไทย แสดงผล #Deleted


0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้

24 ก.ค. 62 , 11:55:21
อ่าน 1062 ครั้ง

nonc31

เชื่อมต่อ Mysql ด้วย ODBC ฟิลด์ Username ที่เป็นตัวอักษรภาษาไทย แสดงผล #Deleted เป็นเฉพาะตารางเดียว ตารางอื่นไม่เป็นไร
มีวิธีแก้ไขยังไงครับ  ตารางเป็น InnoDB

 

24 ก.ค. 62 , 14:28:54
ตอบกลับ #1

PNR

ลองแปลง BIGINT เป็น INT ดูครับว่าได้ไหม  แบบที่อาจารย์ pizza_p แนะนำในกระทู้ก่อนหน้านี้


หรืออาจจะเกิดจากการแสดงผล Primary Key ครับ จากโพสนี้
Notoriously bad for PKs are all floating point numeric types. They may be rounded differently on the server and in Access. If Access uses a floating point value to query a single record from the server, there will be no results because the actual value on the server is different. This is usually the cause for the #Deleted displayed in table cells.

Good data types for Primary keys are integer types (max int32) and string/varchar types (max length 255 characters).

Dates and fixed-decimal-point data types may be causing problems as well. That is mainly dependent on the actual backend database system and the used ODBC Driver. - I have no experience in that regard with DB2.

หรือใช้ Query แปลง Cint , Cstr ก่อนจัดเก็บ หรือก่อนแสดงบนฟอร์ม
ถ้าเป็น access version 2016 น่าจะแก้ใขปัญหานี้ให้แล้วครับ

รออาจารย์ท่านอื่นมาช่วยเสริมคับ  :cool: :cool:
« แก้ไขครั้งสุดท้าย: 24 ก.ค. 62 , 15:41:20 โดย PNR »
Time to stop for me  :dizzy:
 

25 ก.ค. 62 , 15:48:52
ตอบกลับ #2

nonc31

ผมลองทำแล้ว ไม่ผ่านครับ  ก็เลยลองเลือกทุกข้อเลย แต่ก็ไม่ผ่านครับ  :ouch: :ouch: :ouch:

 


บอร์ดเรียนรู้ Access สำหรับคนไทย


 

Sitemap 1 2 3 4 5