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 Programming / May 2008

Tip: Looking for answers? Try searching our database.

Code to force click on command button

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pattyt - 21 May 2008 17:50 GMT
Hi All,
I thank you in advance for your time.
I have a text box with an event code on click that calculates a number based
on data entry in my main form (the user clicks the button to calculate).
Everything is working great but I would like to add code to force the user to
click the button in order to save or leave the record.

Main Form: frmQaActivity
Control Name: CalculatePoints

Any suggestions?
Maurice - 22 May 2008 08:06 GMT
How about using the before update of the form.

Private Sub Form_BeforeUpdate(Cancel As Integer)
'if you want the user prompted:
msgbox ("Click save button first", vbOkOnly)

'or if you want to automate this call the CalculatePoints sub from here:

CalculatePoints
End Sub

hth
Signature

Maurice Ausum

> Hi All,
> I thank you in advance for your time.
[quoted text clipped - 7 lines]
>
> Any suggestions?
 
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.