Senin, 30 September 2013

[MS_AccessPros] Enable and Disable the First and Last navigation cmdbuttons

 

I use these 2 statements to Enable and Disable the First and Last navigation cmdbuttons. The syntext looks weir to me, but it works ok so far. Is it an appropriate way?  What are other alternatives?

With Me

    !lblTotRec.Caption = "Record " & rs.AbsolutePosition + 1 & " of  " & rs.RecordCount

    !cmdLast.Enabled = Not Me.CurrentRecord = rs.RecordCount               

    !cmdFirst.Enabled = Not rs.AbsolutePosition + 1 = 1

End With

Thanks

Phucon

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)
Recent Activity:
.

__,_._,___

Tidak ada komentar:

Posting Komentar