1
ห้อง MS Access / : iifในคิวรี่ก่อนพิมพ์ป้ายฉลากQbizStickerอยากพิมพ์เฉพาะตำแหน่งแถวและคอลัมน์
« เมื่อ: 16 มิ.ย. 65 , 10:31:03 »
วันนี้แก้ปัญหาบางตำแหน่งที่ไม่ต้องการพิมพ์สติกเกอร์ โดยเพิ่ม field ลงไปในตาราง ว่าจะพิมพ์สติกเกอร์ตำแหน่งนี้ไหม เป็นแบบ number ว่าจะทำแบบนี้ได้ไหม ลองครั้งแรกใช้ condition formatting ทำ textbox คลุมเนื้อหาในสติกเกอร์ทั้งหมดไม่สำเร็จ ค้นบนกูเกิ้ลใหม่ เอาแบบถ้าตรงเงื่อนไขถ้าเป็นเลข 1 แสดงข้อความ ถ้าว่างให้คลุมด้วยสีขาว สำเร็จตาม
Open your report in design view, right click "Detail" select Properties and put the code (in bold) in the OnFormat. Change MyMemo to the name of your memo control.
Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.MyMemo.Visible = Not IsNull(Me.MyMemo)
End Sub

Open your report in design view, right click "Detail" select Properties and put the code (in bold) in the OnFormat. Change MyMemo to the name of your memo control.
Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.MyMemo.Visible = Not IsNull(Me.MyMemo)
End Sub
