field position when going to the next record

  • Thread starter Thread starter Asha
  • Start date Start date
A

Asha

Hi I have created a form. In the form when I go to the
next record with the navigation buttons it takes me to the
same field my cursor was on veruss going to the top of the
form. How do I change this to go to the top of the form?
 
I think I did what you wanted.

select form -> go to properities -> go to events ->
oncurrent type in [IngrdCode].SetFocus

When I do this, I get en error saying the macro could not
be found. I guess I am doing something wrong. The access
documation for this sucks.

Thanks for your help.
-----Original Message-----
Asha,
What is the name of the first control you wish to go to?

In the Form's Current event:
[NameOfControl].SetFocus

--
Fred

Please reply only to this newsgroup.
I do not reply to personal e-mail.


Asha said:
Hi I have created a form. In the form when I go to the
next record with the navigation buttons it takes me to the
same field my cursor was on veruss going to the top of the
form. How do I change this to go to the top of the
form?


.
 
In On Current event line, Select [Event Procedure]
Click on the three dots at the end of the box
I window will open up with the cursor between two lines

Private Sub Form_Current()
<CURSOR should be here>
End Sub


NOW, enter the code that Fred suggested between the two lines.
I think I did what you wanted.

select form -> go to properities -> go to events ->
oncurrent type in [IngrdCode].SetFocus

When I do this, I get en error saying the macro could not
be found. I guess I am doing something wrong. The access
documation for this sucks.

Thanks for your help.
-----Original Message-----
Asha,
What is the name of the first control you wish to go to?

In the Form's Current event:
[NameOfControl].SetFocus

--
Fred

Please reply only to this newsgroup.
I do not reply to personal e-mail.


Asha said:
Hi I have created a form. In the form when I go to the
next record with the navigation buttons it takes me to the
same field my cursor was on veruss going to the top of the
form. How do I change this to go to the top of the
form?


.
 
Back
Top