On Load of form

V

Vítor Barbosa

Hi,

Try this:

**** code sample ***************
Private Sub Forl_Load()

' this is the only thing you need to go to a new record every time the form
loads.
DoCmd.GoToRecord , , acNewRec

End Sub
******end of code *************

Vítor Barbosa
(Portugal)
 
J

johnceef

Good day. I found this reply because I too was attempting the same result. I tried to place your code to where I thought it should go. I did not have a change where I had hoped to have.

I am using the T&A template, Form:Time Cards. I wish to be able to open to the next "time card" (one after the last entry).

Should I try something else ?

Thank you in advance
 
V

Vítor Barbosa

Hi,

First of all I want to correct a small error:
Where I wrote "Private Sub Forl_Load()" I wanted to write "Private Sub
Form_Load()" but I think this is obvious.

Johnceef,

Can you specify where you place the code?
PS: I don't know what is this template. I use a MS Access portuguese version
and there is no T&A template.
Could you be more specific. I need more details to help you...

Vítor Barbosa

--------------------------


johnceef said:
Good day. I found this reply because I too was attempting the same result.
I tried to place your code to where I thought it should go. I did not have a
change where I had hoped to have.
I am using the T&A template, Form:Time Cards. I wish to be able to open to
the next "time card" (one after the last entry).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top