Can anyone help me work out how to avoid getting this error
I am using a command button/ sub procedure to move to the previous record in a form using the code
Docmd.GoToRecord, , acPrevious.
However if the form is already at the first/BOF record, clicking on my 'Previous Record' button creates an error "You cant go to the specified record."
What code do i need to prevent trying to go past the BOF record?
thanks
GezB
I am using a command button/ sub procedure to move to the previous record in a form using the code
Docmd.GoToRecord, , acPrevious.
However if the form is already at the first/BOF record, clicking on my 'Previous Record' button creates an error "You cant go to the specified record."
What code do i need to prevent trying to go past the BOF record?
thanks
GezB