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 / Forms / April 2008

Tip: Looking for answers? Try searching our database.

Populating a text box based on a button

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
adf - 30 Apr 2008 15:26 GMT
I have a form, I would like the user to be able to open a record and press a button on the form which would then "put" a predefined string into the "comments" field of that record, which is displayed as a text box.

I tried using comments.text = "This is my comment" in the Button's click event, but got an error stating that the textbox needed to have focus or something for this to work.

Any ideas?
Rockn - 30 Apr 2008 15:45 GMT
Set the focus prior to entering the text.
Put
Me.Textboxname.SetFocus
Me.Textboxname.Text = "This is the Comment"

>I have a form, I would like the user to be able to open a record and press
>a button on the form which would then "put" a predefined string into the
[quoted text clipped - 5 lines]
>
> Any ideas?
 
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.