On 13 Dec 2005 20:47:14 -0800,
zh**********@hotmail.com wrote:
I have a form that shows a table in single form format.
how can I know the position of the record the form is current showing
so that I can enable or disable some buttons according to the position
information.
For example if the form is showing the first record I need to disable
the Previous button, and for the last record I need to disable the Next
button, etc.
Thanks
If you are replacing the built in navigation buttons with your own
command buttons, you can use, in the Form's Current event:
cmdPreviousButton.Enabled = Not Me.CurrentRecord = 1
cmdNextButton.Enabled = Me.CurrentRecord = 1 Or Me.CurrentRecord <
Me.Recordset.RecordCount
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail