แสดงกระทู้

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - honeypiez19

หน้า: [1]
1
สามารถใช้ UpdateQuery ในการอัพเดท Field ที่ต้องการ โดยต้องกำหนดให้ตรงกับ PrimaryKey ด้วยนะครับเช่น
ผมสมมุติว่า Primary Key คือ ID แต่ของคุณผมไม่แน่ใจว่าชื่อ iCustCode หรือเปล่าถ้าใช่ก็เปลี่ยนจาก ID เป็น iCustCode นะครับ

โค้ด SQL ก็จะเป็น

UPDATE tblTransaction INNER JOIN ImPort_Data ON tblTransaction.ID = ImPort_Data.ID SET tblTransaction.tCustItem = [ImPort_Data].iCustPartsCode
WHERE (((tblTransaction.ID)=[ImPort_Data].[ID]));


โพสต์นี้ได้รับคำขอบคุณจาก: honeypiez19

หน้า: [1]