Full Version: Go to Last Record
UtterAccess Discussion Forums > Microsoft® Access > Access Forms
mkkashif
i want when the form open it goes to last record.i am using this on open form event and working any other way
DoCmd.GoToRecord , , acLast
Alan_G
Hi

Sorry - I don't understand your question.....do you mean it's working as you want but you're looking for a different way of doing it ?

Could you explain a bit more..............?
mkkashif
hi
i want when the form opens it automaticaly goes to last record..
is there any default property to do that.or have to use the code
i am using this code on open event.
Alan_G
The code you're using should do what you need. There's no default setting as far as I know........

Is there any reason for not using the little bit of code?
Aquadevel
Alan,

I think he wants to go to a 'new' record, it being the last.

Try:

DoCmd.GoToRecord , , acNewRec

Should do what he wants.

Good luck, sad.gif

Aqua
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.