View Single Post
  #4  
Old September 6th, 2006, 07:20 PM posted to microsoft.public.access.gettingstarted
Rick Brandt
external usenet poster
 
Posts: 4,354
Default Set focus - the basics

Reader1 wrote:
"Rick Brandt" wrote in message
et...
Forms have *controls*, not *fields*. If your control (TextBox,
ComboBox, etc..) is named "gamma" then you would use...

Me.gamma.SetFocus


Sorry !

I meant controls really I did !

Where exactly do I put this text though ?


It's a line of VBA code so you put it in an event procedure that runs when
you want the focus to be set. When do you want this to happen?

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com