Form Current event

A

Ashley

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
 
F

fredg

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
 
Top