GoToRecord, , acPrevious

GezB

New member
Local time
Today, 02:20
Joined
Jun 27, 2002
Messages
5
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:(
 
Awesome!

your fix works perfectly,

thanks a bunch

GezB:)
 

Users who are viewing this thread

Back
Top Bottom