แสดงกระทู้

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 - kpueng

หน้า: [1]
1
ขอบคุณครับผม
โพสต์นี้ได้รับคำขอบคุณจาก: mivien20

2
sql = "SELECT * FROM Output WHERE [Type] like '" & Nz(Me.tcombo, "*") & "' and [Province] like '" & Nz(Me.cprovince, "*") & "' and [District] like '" & Nz(Me.cdistrict, "*") & "' and [SubDistrict] like '" & Nz(Me.csubdistrict, "*") & "' and [Location] like '" & Nz(Me.Clocation, "*") & "'"

1. หลักความแตกต่างระหว่าง " และ ' และ & คืออะไรครับ
2. ในกรณีนี้ทำไมต้องใส่ " " ที่ตอนต้นและตอนท้ายด้วยครับ เพราะดูในที่อื่น ก็ select * from  where ไม่เห็นต้องมี " " ปิดหัวท้ายเลย
3. like '" & Nz(Me.tcombo, "*") & "'  --> รบกวนช่วยแปล Code นี้หน่อยครับ ไม่เข้าใจตรงการเขียน '" & XXX & "'

ขอโทษนะครับ ที่ต้องรบกวนให้อธิบายเยอะเลย
ขอบคุณล่วงหน้าครับผม
โพสต์นี้ได้รับคำขอบคุณจาก: apirak

หน้า: [1]