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 / December 2007

Tip: Looking for answers? Try searching our database.

Afterupdate Code Question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
scott04 - 06 Dec 2007 16:37 GMT
I am using the following code to disable the date field if the yes/no box is
null or false:
Private Sub Combo33_AfterUpdate()
Me.Ctl1st_Date.Enabled = Nz(Me.Combo33, False)
Me.Most_Recent_Date.Enabled = Nz(Me.Combo33, False)
End Sub

What can i place in this code so that it also deletes whatever date was in
this field if it is selected as N or False?  Any help is appreciated.  Do I
also need to place this in the beforeupdate of the form?
scott04 - 06 Dec 2007 19:07 GMT
Nevermind I just added:
If Me.Combo33 = False Then
       Me.Ctl1st_Date = Null
       Me.Most_Recent_Date = Null
And it works fine
?
 
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.