ที่ปุ่มปรับโค๊ดเป็นแบบนี้นะครับ
Private Sub Command145_Click()
On Error Resume Next
Dim rst As DAO.Recordset
Set rst = CurrentDb.OpenRecordset("M1_GIF", dbOpenDynaset)
rst.MoveFirst
Do Until rst.EOF
rst.Edit
If rst!Rank > 36 Then
rst!Status = "2"
ElseIf rst!Rank <= 36 Then
rst!Status = "1"
End If
rst.Update
rst.MoveNext
Loop
Me.Recalc
rst.Close: Set rst = Nothing
End Sub