First field default in form with header & details

R

Roddy B

Access 2003
When my form opens the cursor defaults to the first field in the tab order
of the Details section. Upon opening I want the form to default the cursor
to the first field in the tab order of the Form Header section. Any advise
is welcome.
 
R

Roddy B

Hey Bonnie.
In Form properties, Event tab, On Current I inserted the code. Upon opening
the form still defaults to the first field of the details section.
Any other ideas?
Thanks!
Roddy
 
B

bhicks11 via AccessMonster.com

It worked here for me. Look at your form events and see if there is anything
running that puts it there. Also, make sure you placed the above code in the
form OnCurrent event.

Bonnie
http://www.dataplus-svc.com

Roddy said:
Hey Bonnie.
In Form properties, Event tab, On Current I inserted the code. Upon opening
the form still defaults to the first field of the details section.
Any other ideas?
Thanks!
Roddy
Hi Roddy,
[quoted text clipped - 10 lines]
 
R

Roddy B

Yep, I placed it On Current event. The only other thing running is...

Private Sub Form_Load()
DoCmd.Maximize
End Sub

....as an On Load event. Thanks for trying!

bhicks11 via AccessMonster.com said:
It worked here for me. Look at your form events and see if there is anything
running that puts it there. Also, make sure you placed the above code in the
form OnCurrent event.

Bonnie
http://www.dataplus-svc.com

Roddy said:
Hey Bonnie.
In Form properties, Event tab, On Current I inserted the code. Upon opening
the form still defaults to the first field of the details section.
Any other ideas?
Thanks!
Roddy
Hi Roddy,
[quoted text clipped - 10 lines]
to the first field in the tab order of the Form Header section. Any advise
is welcome.
 
B

bhicks11 via AccessMonster.com

Make sure the maximize is the first thing but other than that check your
other controls that might be running something.

Bonnie
http://www.dataplus-svc.com

Roddy said:
Yep, I placed it On Current event. The only other thing running is...

Private Sub Form_Load()
DoCmd.Maximize
End Sub

...as an On Load event. Thanks for trying!
It worked here for me. Look at your form events and see if there is anything
running that puts it there. Also, make sure you placed the above code in the
[quoted text clipped - 15 lines]
 
R

Roddy B

Thanks, I will see what I can find.
Roddy

bhicks11 via AccessMonster.com said:
Make sure the maximize is the first thing but other than that check your
other controls that might be running something.

Bonnie
http://www.dataplus-svc.com

Roddy said:
Yep, I placed it On Current event. The only other thing running is...

Private Sub Form_Load()
DoCmd.Maximize
End Sub

...as an On Load event. Thanks for trying!
It worked here for me. Look at your form events and see if there is anything
running that puts it there. Also, make sure you placed the above code in the
[quoted text clipped - 15 lines]
to the first field in the tab order of the Form Header section. Any advise
is welcome.
 

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