37
ห้อง MS Access / รบกวนสอบถามฟังก์ชั่น Random ครับ
« เมื่อ: 17 พ.ค. 61 , 21:20:36 »
คือผมต้องการสร้างปุ่มไว้ Random ฟิวในเทเบิ้ลที่เป็น Text ต้องเขียนโค้ดอย่างไรบ้างครับ ขอบคุณมากครับผม
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.
Private Sub Command19_Click()
Dim rst As DAO.Recordset
If MsgBox("คุณต้องการลบข้อมูลนี้หรือไม่ ?" & vbCrLf & "", vbYesNo + vbInformation, "Warning !!") = vbYes Then
Set rst = Recordset
If Not rst.EOF Then
rst.delete
Me.txt_Status = "20"
End If
Set rst = Nothing
End If
Me.Form.Requery
End Sub
Private Sub Command6_Click()
If DLookup("Password", "tblUser", "User_ID" = '" & Me.txt_ID & "'") = Me.txt_Password Then
nEmployee = CInt(DLookup("User_ID", "tblUser", "User_Name = '" & Me.txt_ID & "'"))
Else
MsgBox "ÃËÑʼèÒ¹äÁè¶Ù¡µéͧ ¡ÃسҡÃÍ¡ãËÁèÍÕ¡¤ÃÑé§ ËÃ×Í µÔ´µèͼÙé´ÙáÅÃкº", , "ÃËÑʼԴ"
End If
End Sub