Form Current event

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have Previous and Next buttons on my form.
If I am on the first record, then the Previous button is disable.
If I am on the last record , then the NExt button is disable.
Could someone please show me how to write VB in my form current event?

Thanks
 
I have Previous and Next buttons on my form.
If I am on the first record, then the Previous button is disable.
If I am on the last record , then the NExt button is disable.
Could someone please show me how to write VB in my form current event?

Thanks

CmdPrevious.Enabled = Not Me.CurrentRecord = 1
CmdNext.Enabled = Me.CurrentRecord = 1 Or Me.CurrentRecord <
Me.Recordset.RecordCount
 
Back
Top