Upon Enter, update form to new value

J

js

I have a field on a form that contains the number of a fire hydrant. It is
the primary key. I'd like to be able to type another value in that field
(lets say "FHCH-005) and have the form move to that record so I can view the
info for that hydrant.

Being 3 minutes before the end of the day and not knowing much about visual
basic:

Private Sub Number_Enter()
DoCmd. GoToRecord? or FindRecord?

Thanks for any advice.

TGIF
 
R

Rick B

Personally, I would add a combo-box to the form header and name it "Find:".
The combo-box wizard will offer you the options of "finding a record and
moving to it".

The wizard will do all the work for you.
 
J

js

Thanks, I guess I'll have to study up a bit on the toolbox. I didn't know
this capability existed.
 

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