populate field by button press

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello. I have a field in my database that I would want to change the value
of simply by pressing a button (three buttons - click on any one to insert
the value attributed to that button). How do I tell access to insert a given
value into the field upon a button press, and does that code go behind the
button object itself?
(Rationale is that this db will be used via touch screen).

Thank you Tim.
 
Timboo

Code-behind-button:

Me!txtYourField = "Value-of-your-button"

This assumes your form has a text control bound to the underlying field for
which you want to change the value.

Terminology note: Access stores values in fields, in tables. A "database"
in Access is ALL of the objects.
 
Back
Top