Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / January 2005

Tip: Looking for answers? Try searching our database.

populate field by button press

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Timboo - 17 Jan 2005 08:25 GMT
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.
Jeff Boyce - 17 Jan 2005 12:51 GMT
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.

Signature

Good luck

Jeff Boyce
<Access MVP>

> 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
[quoted text clipped - 4 lines]
>
> Thank you Tim.
Timboo - 17 Jan 2005 13:43 GMT
Jeff, simple when you know how, thank you worked a treat.

> Timboo
>
[quoted text clipped - 18 lines]
> >
> > Thank you Tim.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.